default_nginx_configs/django_app
2024-10-17 13:52:18 +02:00

29 lines
709 B
Plaintext

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