Skip to content

Commit

Permalink
I wish I knew about proxy_redirect before I abandoned some software I…
Browse files Browse the repository at this point in the history
…'ve already forgotten with this exact bug
  • Loading branch information
LunarWatcher committed Apr 18, 2024
1 parent e1f4d77 commit 70de8d1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ server {
proxy_set_header X-Forwarded-For \$proxy_add_x_forwarded_for;
proxy_set_header Host \$host;
proxy_pass http://localhost:6906/;
# Required to prevent downgrades diring redirects
proxy_redirect http://$host/ https://$host/;
proxy_http_version 1.1;
proxy_set_header Upgrade \$http_upgrade;
proxy_set_header Connection "upgrade";
Expand Down

0 comments on commit 70de8d1

Please sign in to comment.