From e5aa80ba0130ad6d88e0f6515b87c531ccf7b130 Mon Sep 17 00:00:00 2001 From: Roman Karwacik <roman.karwacik@rwth-aachen.de> Date: Mon, 25 Jul 2022 20:00:09 +0200 Subject: [PATCH] nginx --- nginx.conf.example | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/nginx.conf.example b/nginx.conf.example index f81c2eb..767c862 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; -- GitLab