From 2b2f86237d37a9afa716b0de961c498382a8b9c1 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sun, 19 Dec 2021 14:35:18 +0200 Subject: [PATCH] fdsfds --- files/__main__.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/files/__main__.py b/files/__main__.py index 52c340d0d..b33c09c52 100644 --- a/files/__main__.py +++ b/files/__main__.py @@ -16,8 +16,6 @@ import gevent from werkzeug.middleware.proxy_fix import ProxyFix import redis -if int(environ.get("CHRISTMAS", 0)): templates = 'templates/CHRISTMAS' -else: templates = 'templates' app = Flask(__name__, template_folder=templates) app.wsgi_app = ProxyFix(app.wsgi_app, x_for=3) @@ -35,7 +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 -app.config["SESSION_COOKIE_NAME"] = "session_" + environ.get("SITE_NAME").strip().lower() +app.config["SESSION_COOKIE_NAME"] = "session_" + environ.get("DOMAIN") 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)))