forked from MarseyWorld/MarseyWorld
fsdfsd
parent
12904050a1
commit
7e4a1f408a
|
@ -1,5 +1,4 @@
|
||||||
import gevent.monkey
|
import gevent.monkeygevent.monkey.patch_all()
|
||||||
gevent.monkey.patch_all()
|
|
||||||
from os import environ
|
from os import environ
|
||||||
import secrets
|
import secrets
|
||||||
from flask import *
|
from flask import *
|
||||||
|
@ -33,7 +32,8 @@ app.config['DATABASE_URL'] = environ.get("DATABASE_URL")
|
||||||
app.config['SECRET_KEY'] = environ.get('MASTER_KEY')
|
app.config['SECRET_KEY'] = environ.get('MASTER_KEY')
|
||||||
app.config["SERVER_NAME"] = environ.get("DOMAIN").strip()
|
app.config["SERVER_NAME"] = environ.get("DOMAIN").strip()
|
||||||
app.config['SEND_FILE_MAX_AGE_DEFAULT'] = 86400
|
app.config['SEND_FILE_MAX_AGE_DEFAULT'] = 86400
|
||||||
app.config["SESSION_COOKIE_NAME"] = "session_" + environ.get("DOMAIN")
|
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["VERSION"] = "1.0.0"
|
app.config["VERSION"] = "1.0.0"
|
||||||
app.config['MAX_CONTENT_LENGTH'] = 8 * 1024 * 1024
|
app.config['MAX_CONTENT_LENGTH'] = 8 * 1024 * 1024
|
||||||
app.config["SESSION_COOKIE_SECURE"] = bool(int(environ.get("FORCE_HTTPS", 1)))
|
app.config["SESSION_COOKIE_SECURE"] = bool(int(environ.get("FORCE_HTTPS", 1)))
|
||||||
|
|
Loading…
Reference in New Issue