From 32a06e4b42b40437c0006d9584e49159af4dce55 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Wed, 22 Feb 2023 09:32:18 +0000 Subject: [PATCH] Unset some extra headers Avoids some gunicorn errors --- etc/nginx.conf | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/etc/nginx.conf b/etc/nginx.conf index 1783a83..b8266f0 100644 --- a/etc/nginx.conf +++ b/etc/nginx.conf @@ -17,22 +17,11 @@ server { proxy_headers_hash_max_size 1024; proxy_http_version 1.1; proxy_read_timeout 240; - proxy_redirect http:// $scheme://; proxy_send_timeout 240; proxy_set_header Host $host; - proxy_set_header Upgrade $http_upgrade; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Host $host; - proxy_set_header X-Forwarded-Method $request_method; - proxy_set_header X-Forwarded-Port $server_port; - proxy_set_header X-Forwarded-Proto $scheme; - proxy_set_header X-Forwarded-Server $host; - proxy_set_header X-Forwarded-Ssl on; - proxy_set_header X-Forwarded-Uri $request_uri; - proxy_set_header X-Original-Method $request_method; - proxy_set_header X-Original-URL $scheme://$http_host$request_uri; - proxy_set_header X-Real-IP $remote_addr; proxy_pass http://django:8080; }