From 5a9b17567c148660e30343fcd285edcc4051d0d9 Mon Sep 17 00:00:00 2001 From: Dennis Schubert Date: Mon, 9 Jan 2012 02:31:31 +0100 Subject: [PATCH] Set X-Forwarded-Proto to https in nginx.conf to prevent issues with redirect_to and https:// [ci skip] --- chef/cookbooks/diaspora/templates/default/nginx.conf.erb | 1 + 1 file changed, 1 insertion(+) diff --git a/chef/cookbooks/diaspora/templates/default/nginx.conf.erb b/chef/cookbooks/diaspora/templates/default/nginx.conf.erb index 9dc695e0d..c15a595e7 100644 --- a/chef/cookbooks/diaspora/templates/default/nginx.conf.erb +++ b/chef/cookbooks/diaspora/templates/default/nginx.conf.erb @@ -80,6 +80,7 @@ http { location / { proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto https; proxy_set_header Host $http_host; proxy_redirect off;