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,22 @@
# /etc/nginx/sites-available/table.lehrstun.de
# Oeffentliche Tabellen: statisch aus /var/www/table (App-Ausfall egal).
# Admin-Panel: Proxy auf gunicorn, hinter Basic Auth.
server {
listen 80;
server_name table.lehrstun.de;
root /var/www/table;
index index.html;
location = / { return 302 /admin/; }
location = /admin { return 302 /admin/; }
location /admin/ {
auth_basic "QR-Tabellen Admin";
auth_basic_user_file /etc/nginx/htpasswd-table;
proxy_pass http://127.0.0.1:8010;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Proto $scheme;
client_max_body_size 10m;
}
}