# In http{} einbinden. HTTPS danach über certbot --nginx. server { listen 80; server_name dashboard.example.com; client_max_body_size 2m; location /static/ { alias /opt/dilib-dashboard/staticfiles/; } location ~ ^/(api|admin)/ { proxy_pass http://127.0.0.1:8000; proxy_set_header Host $host; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Real-IP $remote_addr; proxy_read_timeout 75s; } location / { proxy_pass http://127.0.0.1:8080; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; proxy_set_header Host $host; proxy_set_header X-Forwarded-Proto $scheme; proxy_read_timeout 3600s; proxy_buffering off; } }