Changeset - 819d02d81946
[Not reviewed]
0 1 0
Branko Majic (branko) - 8 years ago 2015-11-03 15:51:42
branko@majic.rs
MAR-42: make sure the protocol used (http/https) is passed-on to the WSGI application. This is important in order to generate proper redirects and URLs from within the WSGI application.
1 file changed with 1 insertions and 0 deletions:
0 comments (0 inline, 0 general)
roles/wsgi_website/templates/nginx_site.j2
Show inline comments
 
@@ -34,6 +34,7 @@ server {
 
    }
 

	
 
    location @proxy_to_app {
 
        proxy_set_header X-Forwarded-Proto $scheme;
 
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
 
        proxy_set_header Host $http_host;
 
        proxy_redirect off;
0 comments (0 inline, 0 general)