2019-10-27 04:53:40 +01:00
|
|
|
server {
|
2020-08-30 23:30:17 +02:00
|
|
|
listen 8000;
|
2019-10-27 04:53:40 +01:00
|
|
|
|
|
|
|
# Main Website
|
|
|
|
location / {
|
|
|
|
include uwsgi_params;
|
|
|
|
proxy_set_header Host $http_host;
|
|
|
|
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 $scheme;
|
2020-08-30 23:30:17 +02:00
|
|
|
proxy_pass http://localhost:8080;
|
2020-01-18 21:32:53 +01:00
|
|
|
# Give ample time for notifications to fire
|
|
|
|
proxy_read_timeout 120s;
|
2019-10-27 04:53:40 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
# Static Content
|
|
|
|
location /s/ {
|
|
|
|
root /usr/share/nginx/html;
|
|
|
|
index index.html;
|
|
|
|
}
|
|
|
|
|
|
|
|
# 404 error handling
|
|
|
|
error_page 404 /404.html;
|
|
|
|
|
|
|
|
# redirect server error pages to the static page /50x.html
|
|
|
|
error_page 500 502 503 504 /50x.html;
|
|
|
|
location = /50x.html {
|
|
|
|
root /usr/share/nginx/html;
|
|
|
|
}
|
2020-08-30 23:30:17 +02:00
|
|
|
}
|