diff options
| author | David Leutgeb <david@noreply.localhost> | 2024-10-17 13:52:18 +0200 |
|---|---|---|
| committer | David Leutgeb <david@noreply.localhost> | 2024-10-17 13:52:18 +0200 |
| commit | 20852782cf2cf0ba369fef69afb9b10f28456074 (patch) | |
| tree | 0cc4bb7435ed23776ac1bb7522b4461507cda326 /django_app | |
| download | default_nginx_configs-20852782cf2cf0ba369fef69afb9b10f28456074.tar.gz default_nginx_configs-20852782cf2cf0ba369fef69afb9b10f28456074.zip | |
django_app
Diffstat (limited to 'django_app')
| -rw-r--r-- | django_app | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/django_app b/django_app new file mode 100644 index 0000000..0fa7cb4 --- /dev/null +++ b/django_app @@ -0,0 +1,28 @@ +# 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; + } + +} |