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;
    try_files $uri/index.html $uri @crisiscleanup;

    location @crisiscleanup {
        proxy_set_header X-Forwarded-For $remote_addr;
        proxy_set_header X-Forwarded-Host $host:$server_port;
        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;
}