diff --git a/nginx.conf.example b/nginx.conf.example index fe6363ea61d0843635840535a919e83d0036514e..144cb7c29b30d7abd0e0afb06a2adc534339aba9 100644 --- a/nginx.conf.example +++ b/nginx.conf.example @@ -12,36 +12,36 @@ pid nginx.pid; error_log nginx.err.log; events { - worker_connections 768; + worker_connections 768; } http { - access_log nginx.log; - client_body_in_file_only off; - include /etc/nginx/mime.types; - default_type application/octet-stream; - sendfile on; - tcp_nopush on; - tcp_nodelay on; - keepalive_timeout 65; - types_hash_max_size 2048; - server { - #listen 5000; - #listen [::]:5000; + access_log nginx.log; + client_body_in_file_only off; + include /etc/nginx/mime.types; + default_type application/octet-stream; + sendfile on; + tcp_nopush on; + tcp_nodelay on; + keepalive_timeout 65; + types_hash_max_size 2048; + server { + #listen 5000; + #listen [::]:5000; listen localhost:5000; - error_page 502 /static/500.html; - location /static/ { - root .; - } - location /files/ { - auth_request /auth; + error_page 502 /static/500.html; + location /static/ { + root .; + } + location /files/ { + auth_request /auth; # For use with sshfs (recommended) - #alias /mnt/videoag/srv/videoag/released/; + #alias /mnt/videoag/srv/videoag/released/; # For use without sshfs - proxy_pass https://videoag.fsmpi.rwth-aachen.de/; - proxy_set_header Host "videoag.fsmpi.rwth-aachen.de"; - } - location / { + proxy_pass https://videoag.fsmpi.rwth-aachen.de/; + proxy_set_header Host "videoag.fsmpi.rwth-aachen.de"; + } + location / { include /etc/nginx/uwsgi_params; uwsgi_param REQUEST_URI $uri; uwsgi_param HTTP_X_ORIGINAL_URI $request_uri;