From 443955f39df61aa4f909e05504a9e264737a69fb Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Mon, 20 Dec 2021 23:11:47 +0200 Subject: [PATCH] fdssdf --- files/__main__.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/files/__main__.py b/files/__main__.py index 1d9cfcfa2..f30308c00 100644 --- a/files/__main__.py +++ b/files/__main__.py @@ -33,8 +33,7 @@ app.config['DATABASE_URL'] = environ.get("DATABASE_URL") app.config['SECRET_KEY'] = environ.get('MASTER_KEY') app.config["SERVER_NAME"] = environ.get("DOMAIN").strip() app.config['SEND_FILE_MAX_AGE_DEFAULT'] = 86400 -if app.config["SITE_NAME"] == 'Drama': app.config["SESSION_COOKIE_NAME"] = "session_" + environ.get("DOMAIN") -else: app.config["SESSION_COOKIE_NAME"] = "session_" + app.config["SITE_NAME"] +app.config["SESSION_COOKIE_NAME"] = f'session_{environ.get("DOMAIN")}'.strip().lower() app.config["VERSION"] = "1.0.0" app.config['MAX_CONTENT_LENGTH'] = 8 * 1024 * 1024 app.config["SESSION_COOKIE_SECURE"] = bool(int(environ.get("FORCE_HTTPS", 1)))