From a3a373820e7f2216d0d4285b965f1f707eca7cf8 Mon Sep 17 00:00:00 2001 From: Andros Fenollosa Date: Mon, 24 Jun 2024 17:30:48 +0200 Subject: [PATCH] Update nginx.conf --- nginx.conf | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/nginx.conf b/nginx.conf index e374330..ab0b25d 100644 --- a/nginx.conf +++ b/nginx.conf @@ -6,22 +6,11 @@ http { server_name _; location / { - proxy_pass http://django:9100; - proxy_set_header Host $host; - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection ""; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - proxy_set_header X-Forwarded-Host $server_name; - proxy_set_header X-Real-IP $remote_addr; - proxy_redirect off; - proxy_buffering off; - proxy_cache off; - chunked_transfer_encoding off; + try_files $uri $uri/ $uri.html =404; } + location /img { - include /etc/nginx/mime.types; + include /etc/nginx/mime.types; alias /var/www/html/img; }