Files
qr-tabellen/deploy/nginx-table.lehrstun.de.conf

23 lines
662 B
Plaintext

# /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;
}
}