Deployment vorbereitet: systemd-Unit, Nginx-Vhost, Static unter /admin/static
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -21,7 +21,8 @@ from flask import (
|
||||
|
||||
from . import engine, storage
|
||||
|
||||
app = Flask(__name__)
|
||||
# Static unter /admin/static, damit Nginx nur eine /admin-Location braucht.
|
||||
app = Flask(__name__, static_url_path="/admin/static")
|
||||
# Secret nur fuer Flash-Messages; bei Neustart verfallende Session ist ok.
|
||||
app.secret_key = os.environ.get("QT_SECRET_KEY") or os.urandom(16)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user