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

@@ -0,0 +1,15 @@
# /etc/systemd/system/qr-tabellen.service
[Unit]
Description=QR-Tabellen Admin-Panel (table.lehrstun.de)
After=network.target
[Service]
User=herb
WorkingDirectory=/home/herb/qr-tabellen
Environment=QT_BASE_URL=https://table.lehrstun.de
Environment=QT_PUBLIC_DIR=/var/www/table
ExecStart=/home/herb/qr-tabellen/venv/bin/gunicorn -w 2 -b 127.0.0.1:8010 app.main:app
Restart=on-failure
[Install]
WantedBy=multi-user.target