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 f06a937 commit e90c607
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/reverseproxy_ssl_letsencrypt.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,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 e90c607

Please sign in to comment.