From 66887f21b84b48732b2a7b07e49e2a9509a14d4c Mon Sep 17 00:00:00 2001 From: Patrick Jentsch Date: Thu, 19 Nov 2020 12:30:13 +0100 Subject: [PATCH] Add config variables to generate url outside of request contexts --- web/config.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/web/config.py b/web/config.py index 97e07697..7740ef96 100644 --- a/web/config.py +++ b/web/config.py @@ -8,7 +8,9 @@ ROOT_DIR = os.path.abspath(os.path.dirname(__file__)) class Config: ''' # Flask # ''' + PREFERRED_URL_SCHEME = os.environ.get('PREFERRED_URL_SCHEME', 'http') SECRET_KEY = os.environ.get('SECRET_KEY', 'hard to guess string') + SERVER_NAME = os.environ.get('SERVER_NAME') SESSION_COOKIE_SECURE = \ os.environ.get('SESSION_COOKIE_SECURE', 'false').lower() == 'true'