server {
    listen 80;
    server_name _;

    client_max_body_size 20M;
    
    location /ws {
        proxy_pass http://localhost:3773;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "Upgrade";
        proxy_set_header Host $host;

        proxy_read_timeout 3600s;
        proxy_send_timeout 3600s;
        proxy_connect_timeout 60s;

        proxy_buffering off;
        keepalive_timeout 75s;

        tcp_nodelay on;
    }

    location / {
        proxy_pass http://localhost:3772;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "Upgrade";
        proxy_set_header Host $host;
    }
}