From ccef20c14827a71773bcb4c56b6d72682aaa1006 Mon Sep 17 00:00:00 2001 From: Andros Fenollosa Date: Mon, 24 Jun 2024 17:28:30 +0200 Subject: [PATCH] Create nginx.conf --- nginx.conf | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 nginx.conf diff --git a/nginx.conf b/nginx.conf new file mode 100644 index 0000000..e374330 --- /dev/null +++ b/nginx.conf @@ -0,0 +1,30 @@ +events {} + +http { + server { + listen 80 default_server; + 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; + } + location /img { + include /etc/nginx/mime.types; + alias /var/www/html/img; + } + + location = /favicon.ico { access_log off; log_not_found off; } + } +}