Skip to content

Commit b39b442

Browse files
committed
Merge pull request #2817 from mboersma/controller-cruft
Remove controller settings cruft
2 parents e5182be + 2c30e5f commit b39b442

1 file changed

Lines changed: 3 additions & 12 deletions

File tree

controller/deis/settings.py

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@
2020

2121
CONN_MAX_AGE = 60 * 3
2222

23-
# Hosts/domain names that are valid for this site; required if DEBUG is False
24-
# See https://docs.djangoproject.com/en/1.5/ref/settings/#allowed-hosts
25-
ALLOWED_HOSTS = ['localhost']
23+
# SECURITY: change this to allowed fqdn's to prevent host poisioning attacks
24+
# https://docs.djangoproject.com/en/1.6/ref/settings/#allowed-hosts
25+
ALLOWED_HOSTS = ['*']
2626

2727
# Local time zone for this installation. Choices can be found here:
2828
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
@@ -155,10 +155,6 @@
155155
)
156156

157157
ANONYMOUS_USER_ID = -1
158-
ACCOUNT_EMAIL_REQUIRED = True
159-
ACCOUNT_EMAIL_VERIFICATION = 'none'
160-
ACCOUNT_LOGOUT_ON_GET = True
161-
ACCOUNT_USERNAME_BLACKLIST = ['system']
162158
LOGIN_URL = '/v1/auth/login/'
163159
LOGIN_REDIRECT_URL = '/'
164160

@@ -270,7 +266,6 @@
270266
DEIS_LOG_DIR = os.path.abspath(os.path.join(__file__, '..', '..', 'logs'))
271267
LOG_LINES = 1000
272268
TEMPDIR = tempfile.mkdtemp(prefix='deis')
273-
DEFAULT_BUILD = 'deis/helloworld'
274269
DEIS_DOMAIN = 'deisapp.local'
275270

276271
# standard datetime format used for logging, model timestamps, etc.
@@ -309,10 +304,6 @@
309304

310305
APP_URL_REGEX = '[a-z0-9-]+'
311306

312-
# SECURITY: change this to allowed fqdn's to prevent host poisioning attacks
313-
# see https://docs.djangoproject.com/en/1.5/ref/settings/#std:setting-ALLOWED_HOSTS
314-
ALLOWED_HOSTS = ['*']
315-
316307
# Honor HTTPS from a trusted proxy
317308
# see https://docs.djangoproject.com/en/1.6/ref/settings/#secure-proxy-ssl-header
318309
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')

0 commit comments

Comments
 (0)