Virtlyst-nginx
RAW

upstream virtlyst {
    server localhost:3000;
    keepalive 32;
}

server {
    listen 80;
    listen [::]:80;
    server_name my.server.com;
    access_log /var/log/nginx/virtlyst.log;

    location / {
        include fastcgi_params;
        fastcgi_pass virtlyst;
        fastcgi_keep_conn on;
    }
    location /static {
        alias  /home/daniel/code/Virtlyst/root/static;
        access_log off;
        expires    1d;
    }
    location /ws {
        proxy_pass http://localhost:3001;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-for $proxy_add_x_forwarded_for;
        proxy_set_header Host $host:$server_port;
        proxy_set_header X-Forwarded-Proto $scheme;
        proxy_connect_timeout 600;
        proxy_read_timeout 600;
        client_max_body_size 1024M; # Set higher depending on your needs 
    }
}