Skip to content

Commit

Permalink
Make USE_SSL variable optional
Browse files Browse the repository at this point in the history
  • Loading branch information
renfredxh committed Mar 10, 2015
1 parent 3f7c94a commit af235b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion snueue/config/production.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def get_secret(key):
#
# Option to turn off SSL by setting this to "0". Useful for testing
# production config locally. Otherwise SSL should always be on.
USE_SSL = False if get_secret('SNUEUE_USE_SSL') == '0' else True
USE_SSL = False if os.environ.get('SNUEUE_USE_SSL') == '0' else True
SECRET_KEY = get_secret('SNUEUE_SECRET_KEY')
SESSION_COOKIE_SECURE = True if USE_SSL else False
PROTOCOL = "https" if USE_SSL else "http"
Expand Down

0 comments on commit af235b9

Please sign in to comment.