Skip to content

Commit 44e57dd

Browse files
committed
Merge pull request #570 from jwilder/jw-ec2-ssl
Allow controller to run behind an SSL termination proxy
2 parents 818afc3 + 7cbfc5d commit 44e57dd

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

deis/settings.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,8 @@
312312
# see https://docs.djangoproject.com/en/1.5/ref/settings/#std:setting-ALLOWED_HOSTS
313313
ALLOWED_HOSTS = ['*']
314314

315+
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
316+
315317
# import dynamic confd settings from /app, if they exist
316318
try:
317319
if os.path.exists('/app/confd_settings.py'):

0 commit comments

Comments
 (0)