From da0d62086458c84284539050824603b98afece23 Mon Sep 17 00:00:00 2001 From: Aevann1 <59999695+Aevann1@users.noreply.github.com> Date: Tue, 21 Dec 2021 23:47:42 +0200 Subject: [PATCH] Update __main__.py --- files/__main__.py | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/files/__main__.py b/files/__main__.py index 56d413a99..2b4b93c33 100644 --- a/files/__main__.py +++ b/files/__main__.py @@ -8,8 +8,6 @@ from flask_limiter import Limiter from flask_compress import Compress from flask_limiter.util import get_ipaddr from flask_mail import Mail -from flask_session import Session - from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import sessionmaker, scoped_session from sqlalchemy import * @@ -18,8 +16,6 @@ from werkzeug.middleware.proxy_fix import ProxyFix import redis app = Flask(__name__, template_folder='templates') -app.config["SESSION_TYPE"] = "redis" -Session(app) app.wsgi_app = ProxyFix(app.wsgi_app, x_for=3) app.url_map.strict_slashes = False @@ -71,10 +67,6 @@ app.config['MAIL_USE_TLS'] = True app.config['MAIL_USERNAME'] = environ.get("MAIL_USERNAME", "").strip() app.config['MAIL_PASSWORD'] = environ.get("MAIL_PASSWORD", "").strip() -app.config["SESSION_USE_SIGNER"] = True -app.config["SESSION_COOKIE_DOMAIN"] = app.config["SERVER_NAME"] - - r=redis.Redis(host=environ.get("REDIS_URL", "redis://localhost"), decode_responses=True, ssl_cert_reqs=None) limiter = Limiter( @@ -135,4 +127,4 @@ def after_request(response): return response -from files.routes import * \ No newline at end of file +from files.routes import *