mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-11-14 16:55:42 +00:00
Add config variables to generate url outside of request contexts
This commit is contained in:
parent
b606710edf
commit
66887f21b8
@ -8,7 +8,9 @@ ROOT_DIR = os.path.abspath(os.path.dirname(__file__))
|
|||||||
|
|
||||||
class Config:
|
class Config:
|
||||||
''' # Flask # '''
|
''' # Flask # '''
|
||||||
|
PREFERRED_URL_SCHEME = os.environ.get('PREFERRED_URL_SCHEME', 'http')
|
||||||
SECRET_KEY = os.environ.get('SECRET_KEY', 'hard to guess string')
|
SECRET_KEY = os.environ.get('SECRET_KEY', 'hard to guess string')
|
||||||
|
SERVER_NAME = os.environ.get('SERVER_NAME')
|
||||||
SESSION_COOKIE_SECURE = \
|
SESSION_COOKIE_SECURE = \
|
||||||
os.environ.get('SESSION_COOKIE_SECURE', 'false').lower() == 'true'
|
os.environ.get('SESSION_COOKIE_SECURE', 'false').lower() == 'true'
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user