File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2020
2121CONN_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
304304
305305APP_URL_REGEX = '[a-z0-9-]+'
306306
307- # SECURITY: change this to allowed fqdn's to prevent host poisioning attacks
308- # see https://docs.djangoproject.com/en/1.5/ref/settings/#std:setting-ALLOWED_HOSTS
309- ALLOWED_HOSTS = ['*' ]
310-
311307# Honor HTTPS from a trusted proxy
312308# see https://docs.djangoproject.com/en/1.6/ref/settings/#secure-proxy-ssl-header
313309SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO' , 'https' )
You can’t perform that action at this time.
0 commit comments