forked from rDrama/rDrama
make login/signup work on local
parent
cb2fd8e43f
commit
63fd0bd6ba
|
@ -31,9 +31,9 @@ app.config['SECRET_KEY'] = environ.get('SECRET_KEY').strip()
|
|||
app.config['SEND_FILE_MAX_AGE_DEFAULT'] = 3153600
|
||||
if not IS_LOCALHOST:
|
||||
app.config['SESSION_COOKIE_DOMAIN'] = f'.{SITE}'
|
||||
app.config["SESSION_COOKIE_SECURE"] = True
|
||||
app.config["SESSION_COOKIE_NAME"] = "session_" + environ.get("SITE_NAME").strip().lower()
|
||||
app.config['MAX_CONTENT_LENGTH'] = 100 * 1024 * 1024
|
||||
app.config["SESSION_COOKIE_SECURE"] = True
|
||||
app.config["SESSION_COOKIE_SAMESITE"] = "Lax"
|
||||
app.config["PERMANENT_SESSION_LIFETIME"] = 60 * 60 * 24 * 365
|
||||
app.config['SESSION_REFRESH_EACH_REQUEST'] = False
|
||||
|
|
Loading…
Reference in New Issue