Add config variables to generate url outside of request contexts

This commit is contained in:
Patrick Jentsch 2020-11-19 12:30:13 +01:00
parent b606710edf
commit 66887f21b8

View File

@ -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'