1
0
Fork 0
mirror of https://github.com/Findus23/se-simulator.git synced 2024-09-19 15:53:45 +02:00

allow setting redis instance

This commit is contained in:
Lukas Winkler 2018-10-10 17:37:02 +02:00
parent 9ce5beca3e
commit 89526aa9ff

View file

@ -28,6 +28,8 @@ app.jinja_env.globals.update(prettydate=utils.prettydate)
app.jinja_env.globals.update(is_light_color=utils.is_light_color)
SESSION_TYPE = config.session_type
if config.session_type == "redis":
SESSION_REDIS = config.redis_instance
SESSION_COOKIE_SECURE = config.production
SESSION_USE_SIGNER = True
SESSION_KEY_PREFIX = "StackDataSessions:"