From fbfab42fad5eb131dd51336ec2b15b2ff20bdf39 Mon Sep 17 00:00:00 2001 From: Alex Lambson Date: Thu, 14 Aug 2025 13:09:35 -0600 Subject: [PATCH] Update nginx.prod.conf Signed-off-by: Alex Lambson --- docker/nginx.prod.conf | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/docker/nginx.prod.conf b/docker/nginx.prod.conf index 40340e0..a90ca9a 100644 --- a/docker/nginx.prod.conf +++ b/docker/nginx.prod.conf @@ -1,5 +1,6 @@ user nginx; worker_processes 4; +error_log /var/log/nginx/error.log warn; pid /var/run/nginx.pid; events { @@ -8,8 +9,10 @@ events { http { server { - listen 80; - + listen 80 deferred; + client_max_body_size 128M; + server_name cncnet.org mapdb2.cncnet.org; + # Serve static files: js, static images, etc. location /static/ { alias /usr/share/nginx/html/static/; # The nginx container's mounted volume. @@ -25,10 +28,11 @@ http { # Proxy requests to the Django app running in gunicorn location / { proxy_pass http://django:8000; # The Django app is exposed on the `django` container on port 8000 - proxy_set_header Host $host; + proxy_set_header Host $http_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; } } }