Skip to content

Commit

Permalink
Changed template spacing to prevent proxy_pass ovelap location line
Browse files Browse the repository at this point in the history
  • Loading branch information
pnaw94 authored Jul 14, 2017
1 parent 4f80c9b commit 60c140f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ server {
if ($http_x_forwarded_proto != "https") {
return 307 https://$host$request_uri;
}
{{ end -}}
{{ end }}

proxy_pass http://{{ $upstream }};
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
Expand All @@ -67,7 +67,7 @@ server {
if ($http_x_forwarded_proto != "https") {
return 307 https://$host$request_uri;
}
{{ end -}}
{{ end }}

proxy_pass http://{{ $upstream }};
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
Expand All @@ -85,7 +85,7 @@ server {
if ($http_x_forwarded_proto != "https") {
return 307 https://$host$request_uri;
}
{{ end -}}
{{ end }}

proxy_pass http://{{ $upstream }};
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
Expand All @@ -102,7 +102,7 @@ server {
if ($http_x_forwarded_proto != "https") {
return 307 https://$host$request_uri;
}
{{ end -}}
{{ end }}

proxy_pass http://{{ $upstream }};
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
Expand All @@ -114,7 +114,7 @@ server {
if ($http_x_forwarded_proto != "https") {
return 307 https://$host$request_uri;
}
{{ end -}}
{{ end }}

proxy_pass http://{{ $upstream }};
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
Expand Down

0 comments on commit 60c140f

Please sign in to comment.