change DOMAIN env var to SITE (for consistency)

master
Aevann1 2022-10-08 04:06:55 +02:00
parent 137fa7c6d6
commit b515b8bd15
3 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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

View File

@ -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()