# Default working config for a Django App server { listen 443 ssl; server_name tool.domain.local tool; ssl_certificate /etc/ssl/fullchain.crt; ssl_certificate_key /etc/ssl/cert.key; access_log /var/log/nginx/log_webinterface.log; error_log /var/log/nginx/log_webinterface.log; client_max_body_size 50M; location /static { alias /var/www/app/staticfiles; } location / { proxy_pass http://127.0.0.1:8003; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; proxy_redirect off; } }