diff --git a/nginx.conf.example b/nginx.conf.example index f81c2eba32dcaa4413f35b374f2e8be28d90390c..767c862b76622cba5870897ecc86c02954a9d8c7 100644 --- a/nginx.conf.example +++ b/nginx.conf.example @@ -41,9 +41,16 @@ http { #add_header Set-Cookie $trackingcookie; # For use without sshfs # NO TRAILING SLASH so that /files/ will not be skipped of the request! - proxy_pass https://videoag.fsmpi.rwth-aachen.de; - proxy_set_header Host "videoag.fsmpi.rwth-aachen.de"; - proxy_set_header Set-Cookie $trackingcookie; + #proxy_pass https://videoag.fsmpi.rwth-aachen.de; + #proxy_set_header Host "videoag.fsmpi.rwth-aachen.de"; + #proxy_set_header Set-Cookie $trackingcookie; + # For use with S3 + add_header Set-Cookie $trackingcookie; + include uwsgi_params; + uwsgi_param REQUEST_URI $uri; + uwsgi_param HTTP_X_ORIGINAL_URI $request_uri; + uwsgi_param HTTP_X_REAL_IP $remote_addr; + uwsgi_pass unix:uwsgi.sock; } location / { include /etc/nginx/uwsgi_params;