Skip to content

Commit

Permalink
added X-Forwarded-Proto header to all server blocks that are proxying…
Browse files Browse the repository at this point in the history
… to (#24)

a backend.
  • Loading branch information
jaiew authored Aug 20, 2020
1 parent e021856 commit 5894acf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions config/nginx.conf.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ http {
location {{incomingPath}} {
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_pass http://localhost:{{outgoingPort}}{{outgoingPath}};
}
}
Expand All @@ -48,6 +49,7 @@ http {
location / {
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_pass http://localhost:{{port}};
proxy_send_timeout 300;
proxy_read_timeout 300;
Expand Down Expand Up @@ -83,6 +85,7 @@ http {
location / {
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_pass http://localhost:{{port}};
proxy_send_timeout 300;
proxy_read_timeout 300;
Expand Down

0 comments on commit 5894acf

Please sign in to comment.