diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2011-11-18 17:04:37 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2011-11-18 17:04:37 -0200 |
commit | 8bb39368acf0362b4db628b8957d657860a7c335 (patch) | |
tree | 5cf0ab32edf420f481dfc6e417ec4edf15c9474b /templates | |
parent | f4630b197fabdae2ac9b41b91768d8d240a84824 (diff) | |
download | puppet-bootstrap-8bb39368acf0362b4db628b8957d657860a7c335.tar.gz puppet-bootstrap-8bb39368acf0362b4db628b8957d657860a7c335.tar.bz2 |
Nginx: set forwarded proto
Diffstat (limited to 'templates')
-rw-r--r-- | templates/etc/nginx/domain.erb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/templates/etc/nginx/domain.erb b/templates/etc/nginx/domain.erb index b5e35da..5e45ec8 100644 --- a/templates/etc/nginx/domain.erb +++ b/templates/etc/nginx/domain.erb @@ -106,8 +106,9 @@ server { client_max_body_size 100M; location / { - # preserve http header + # preserve http header and set forwarded proto proxy_set_header Host $http_host; + proxy_set_header X-Forwarded-Proto https; proxy_read_timeout 120; proxy_connect_timeout 120; |