Deployment vorbereitet: systemd-Unit, Nginx-Vhost, Static unter /admin/static

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
2026-07-05 11:01:35 +02:00
parent 4e0ba397be
commit be525641aa
3 changed files with 39 additions and 1 deletions

View File

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