aboutsummaryrefslogtreecommitdiff
path: root/templates/etc
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2011-11-18 17:04:37 -0200
committerSilvio Rhatto <rhatto@riseup.net>2011-11-18 17:04:37 -0200
commit8bb39368acf0362b4db628b8957d657860a7c335 (patch)
tree5cf0ab32edf420f481dfc6e417ec4edf15c9474b /templates/etc
parentf4630b197fabdae2ac9b41b91768d8d240a84824 (diff)
downloadpuppet-bootstrap-8bb39368acf0362b4db628b8957d657860a7c335.tar.gz
puppet-bootstrap-8bb39368acf0362b4db628b8957d657860a7c335.tar.bz2
Nginx: set forwarded proto
Diffstat (limited to 'templates/etc')
-rw-r--r--templates/etc/nginx/domain.erb3
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;