From c526c5a64b381bdccb9c13dc789374339055d9dc Mon Sep 17 00:00:00 2001 From: Ben Adida <ben@adida.net> Date: Fri, 22 Aug 2014 16:58:00 +0000 Subject: [PATCH] make settings file a bit easier to use for dev --- settings.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/settings.py b/settings.py index 9734e43..fd171c7 100644 --- a/settings.py +++ b/settings.py @@ -165,13 +165,13 @@ URL_HOST = get_from_env("URL_HOST", "http://localhost:8000") # IMPORTANT: you should not change this setting once you've created # elections, as your elections' cast_url will then be incorrect. # SECURE_URL_HOST = "https://localhost:8443" -SECURE_URL_HOST = get_from_env("SECURE_URL_HOST", "http://localhost:8000") +SECURE_URL_HOST = get_from_env("SECURE_URL_HOST", URL_HOST) # this additional host is used to iframe-isolate the social buttons, # which usually involve hooking in remote JavaScript, which could be # a security issue. Plus, if there's a loading issue, it blocks the whole # page. Not cool. -SOCIALBUTTONS_URL_HOST= get_from_env("SOCIALBUTTONS_URL_HOST", "http://localhost:8000") +SOCIALBUTTONS_URL_HOST= get_from_env("SOCIALBUTTONS_URL_HOST", SECURE_URL_HOST) # election stuff SITE_TITLE = get_from_env('SITE_TITLE', 'Helios Voting') -- GitLab