[themotte/rDrama#451] Ability to disable secure session cookie with env var
This commit is contained in:
parent
8b7e637e6e
commit
b06a481a0f
1 changed files with 1 additions and 1 deletions
|
@ -98,7 +98,7 @@ app.config['SEND_FILE_MAX_AGE_DEFAULT'] = 0 if app.debug else 3153600
|
|||
app.config["SESSION_COOKIE_NAME"] = "session_" + environ.get("SITE_ID").strip().lower()
|
||||
app.config["VERSION"] = "1.0.0"
|
||||
app.config['MAX_CONTENT_LENGTH'] = 16 * 1024 * 1024
|
||||
app.config["SESSION_COOKIE_SECURE"] = "localhost" not in environ.get("DOMAIN")
|
||||
app.config["SESSION_COOKIE_SECURE"] = bool(environ.get('SESSION_COOKIE_SECURE', "localhost" not in environ.get("DOMAIN")))
|
||||
app.config["SESSION_COOKIE_SAMESITE"] = "Lax"
|
||||
app.config["PERMANENT_SESSION_LIFETIME"] = 60 * 60 * 24 * 365
|
||||
app.config["DEFAULT_COLOR"] = environ.get("DEFAULT_COLOR", "ffffff").strip()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue