2025-06-29, 10:07 AM
That location block does look right to me. Comparing it to my own Nginx config one thing you could try it to also add a proxy_set_header for the X-Forwarded-Protocol header.
For reference, here is my entire location block:
For reference, here is my entire location block:
Code:
location / {
proxy_pass localhost;
proxy_set_header Host $host;
# X-Forwarded
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_set_header X-Forwarded-Protocol $scheme;
proxy_set_header X-Forwarded-Host $http_host;
# WebSockets
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
# Disable buffering when the nginx proxy gets very resource heavy upon streaming
proxy_buffering off;
proxy_cache off;
}