2017-11-28 11:00:11 +01:00
|
|
|
server {
|
|
|
|
listen 8005 ssl http2;
|
|
|
|
listen [::]:8005 ssl http2;
|
|
|
|
|
|
|
|
access_log /var/log/nginx/crisiscleanup.access.log;
|
|
|
|
error_log /var/log/nginx/crisiscleanup.error.log;
|
|
|
|
|
|
|
|
root /srv/crisiscleanup/public;
|
2017-12-08 11:27:01 +01:00
|
|
|
try_files $uri/index.html $uri @crisiscleanup;
|
2017-11-28 11:00:11 +01:00
|
|
|
|
2017-12-08 11:27:01 +01:00
|
|
|
location @crisiscleanup {
|
2017-11-28 11:00:11 +01:00
|
|
|
proxy_set_header X-Forwarded-For $remote_addr;
|
2017-12-08 11:27:01 +01:00
|
|
|
proxy_set_header X-Forwarded-Host $host:$server_port;
|
2017-11-28 11:00:11 +01:00
|
|
|
proxy_set_header X-Forwarded-Proto https;
|
|
|
|
proxy_pass http://127.0.0.1:3000;
|
|
|
|
}
|
|
|
|
|
|
|
|
error_page 404 /404.html;
|
|
|
|
error_page 500 502 503 504 /500.html;
|
|
|
|
}
|