Skip to content
Snippets Groups Projects
Commit c526c5a6 authored by Ben Adida's avatar Ben Adida
Browse files

make settings file a bit easier to use for dev

parent c1c50dc2
Branches
No related tags found
No related merge requests found
......@@ -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')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment