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:
parent
9ce5beca3e
commit
89526aa9ff
1 changed files with 2 additions and 0 deletions
|
@ -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:"
|
||||
|
|
Loading…
Reference in a new issue