set session cookie domain to SITE

remotes/1693176582716663532/tmp_refs/heads/watchparty
justcool393 2022-10-21 14:00:41 -05:00
parent c4b2c6f3f5
commit 2e087dc09f
1 changed files with 1 additions and 1 deletions

View File

@ -27,6 +27,7 @@ faulthandler.enable()
app.config['SECRET_KEY'] = environ.get('SECRET_KEY').strip()
SITE = environ.get("SITE").strip()
app.config['SEND_FILE_MAX_AGE_DEFAULT'] = 3153600
app.config['SESSION_COOKIE_DOMAIN'] = SITE
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
@ -40,7 +41,6 @@ app.config['SQLALCHEMY_DATABASE_URL'] = environ.get("DATABASE_URL").strip()
app.config["CACHE_TYPE"] = "RedisCache"
app.config["CACHE_REDIS_URL"] = environ.get("REDIS_URL").strip()
app.config['SETTINGS'] = {}
r=redis.Redis(host=environ.get("REDIS_URL").strip(), decode_responses=True, ssl_cert_reqs=None)