]> gitweb.fluxo.info Git - puppet-bootstrap.git/commitdiff
Nginx: set forwarded proto
authorSilvio Rhatto <rhatto@riseup.net>
Fri, 18 Nov 2011 19:04:37 +0000 (17:04 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Fri, 18 Nov 2011 19:04:37 +0000 (17:04 -0200)
templates/etc/nginx/domain.erb

index b5e35da5979ea3e98470dabc9c9396dc35e56cad..5e45ec81278414af6cd2c0422941599602bb64da 100644 (file)
@@ -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;