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

improve config

thanks to jaytaylor (#2)
This commit is contained in:
Lukas Winkler 2018-05-13 13:43:03 +02:00
parent de90a78874
commit 4eca4fe9f8
2 changed files with 8 additions and 3 deletions

View file

@ -5,7 +5,12 @@ db = {
"passwd": "password",
}
# check http://flask.pocoo.org/docs/0.12/quickstart/#sessions on how to create
# Check http://flask.pocoo.org/docs/0.12/quickstart/#sessions on how to create
secret_key =
# See https://pythonhosted.org/Flask-Session/
session_type = "filesystem"
make_cacheable = False
production = False

View file

@ -23,7 +23,7 @@ from models import *
app.jinja_env.globals.update(prettydate=utils.prettydate)
app.jinja_env.globals.update(is_light_color=utils.is_light_color)
SESSION_TYPE = 'redis'
SESSION_TYPE = config.session_type
SESSION_COOKIE_SECURE = config.production
SESSION_USE_SIGNER = True
SESSION_KEY_PREFIX = "StackDataSessions:"