Jason Reslock
06/23/2021, 1:53 PM400 Bad Request
errors. The configuration is fairly simple in that I am `proxy_pass`'ing everything to http://localhost:8000Jason Reslock
06/23/2021, 5:02 PM[DEPRECATED] Marcos Marx
Jason Reslock
06/23/2021, 8:19 PMproxy_pass
instead of setting a bunch of headers.
Old:
location / {
proxy_pass <http://localhost:8080>;
proxy_next_upstream error timeout invalid_header http_500 http_502 http_503 http_504;
proxy_set_header Accept-Encoding "";
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;
add_header Front-End-Https on;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
proxy_redirect off;
}
New:
location / {
proxy_pass <http://localhost:8000>;
}
I don't know which of the headers was causing trouble but removing them all seems to have fixed my issue for now.