Skip to content

Commit

Permalink
missing proxy_pass and other settings on default location
Browse files Browse the repository at this point in the history
  • Loading branch information
pablodav committed Mar 4, 2021
1 parent ce98aab commit e1461d4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion templates/reverse-proxy-ssl.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,11 @@ server {
location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $http_host;
proxy_pass https://{{ item.backend_name }}$request_uri;
proxy_set_header X-Forwarded-Host $http_host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://{{ item.backend_name }}$request_uri;

include /etc/nginx/mime.types;
}
{% endif %}
Expand Down

0 comments on commit e1461d4

Please sign in to comment.