Skip to content

Commit

Permalink
send correct proxy headers to support more scenarios like port mapping (
Browse files Browse the repository at this point in the history
  • Loading branch information
ValorNaram authored Dec 24, 2024
1 parent 3922f5e commit 8687eae
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -231,8 +231,9 @@ server {
<other config options>
location /services {
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Host $server_name;
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Ssl on;
proxy_pass http://localhost:8000;
Expand Down

0 comments on commit 8687eae

Please sign in to comment.