forked from MarseyWorld/MarseyWorld
sfd
parent
9bb18f1c83
commit
1f742aee09
|
@ -33,7 +33,7 @@ app.config['DATABASE_URL'] = environ.get("DATABASE_URL")
|
|||
app.config['SECRET_KEY'] = environ.get('MASTER_KEY')
|
||||
app.config["SERVER_NAME"] = environ.get("DOMAIN").strip()
|
||||
app.config['SEND_FILE_MAX_AGE_DEFAULT'] = 86400
|
||||
app.config["SESSION_COOKIE_NAME"] = f'session_{environ.get("DOMAIN")}'.strip().lower()
|
||||
app.config["SESSION_COOKIE_NAME"] = "session_" + environ.get("SITE_NAME").strip().lower()
|
||||
app.config["VERSION"] = "1.0.0"
|
||||
app.config['MAX_CONTENT_LENGTH'] = 8 * 1024 * 1024
|
||||
app.config["SESSION_COOKIE_SECURE"] = True
|
||||
|
@ -110,10 +110,6 @@ def before_request():
|
|||
elif "Mobile/" in ua: g.system="ios/webview"
|
||||
else: g.system="other/other"
|
||||
|
||||
@app.get('/tw')
|
||||
def get_tailwind():
|
||||
return render_template('tailwind.html')
|
||||
|
||||
@app.teardown_appcontext
|
||||
def teardown_request(error):
|
||||
if hasattr(g, 'db') and g.db:
|
||||
|
|
Loading…
Reference in New Issue