forked from MarseyWorld/MarseyWorld
change DOMAIN env var to SITE (for consistency)
parent
137fa7c6d6
commit
b515b8bd15
|
@ -25,7 +25,7 @@ app.jinja_env.add_extension('jinja2.ext.do')
|
|||
faulthandler.enable()
|
||||
|
||||
app.config['SECRET_KEY'] = environ.get('MASTER_KEY')
|
||||
app.config["SERVER_NAME"] = environ.get("DOMAIN").strip()
|
||||
app.config["SERVER_NAME"] = environ.get("SITE").strip()
|
||||
app.config['SEND_FILE_MAX_AGE_DEFAULT'] = 3153600
|
||||
app.config["SESSION_COOKIE_NAME"] = "session_" + environ.get("SITE_NAME").strip().lower()
|
||||
app.config['MAX_CONTENT_LENGTH'] = 100 * 1024 * 1024
|
||||
|
|
|
@ -8,7 +8,7 @@ from .sub_subscription import *
|
|||
import time
|
||||
|
||||
SITE_NAME = environ.get("SITE_NAME", '').strip()
|
||||
SITE = environ.get("DOMAIN", '').strip()
|
||||
SITE = environ.get("SITE", '').strip()
|
||||
if SITE == "localhost": SITE_FULL = 'http://' + SITE
|
||||
else: SITE_FULL = 'https://' + SITE
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@ import tldextract
|
|||
from os import path
|
||||
|
||||
|
||||
SITE = environ.get("DOMAIN").strip()
|
||||
SITE = environ.get("SITE").strip()
|
||||
SITE_NAME = environ.get("SITE_NAME").strip()
|
||||
MASTER_KEY = environ.get("MASTER_KEY").strip()
|
||||
PROXY_URL = environ.get("PROXY_URL").strip()
|
||||
|
|
Loading…
Reference in New Issue