Skip to content

Commit

Permalink
Update template to set https protocol has backend
Browse files Browse the repository at this point in the history
  • Loading branch information
hispanico authored Apr 5, 2019
1 parent b030281 commit f06a937
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/reverseproxy_ssl.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ server {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Frame-Options SAMEORIGIN;
proxy_pass http://{{ item.key }}_backend;
proxy_pass {{ item.value.backend_protocol | default('http') }}://{{ item.key }}_backend;
{% if item.value.auth is defined %}
auth_basic "Restricted Content";
auth_basic_user_file /etc/nginx/{{ item.key }}_htpasswd;
Expand Down

0 comments on commit f06a937

Please sign in to comment.