server { listen 443 ssl; server_name example.com; # ssl_certificate / ssl_certificate_key — например, от certbot root /var/www/my-world; # сюда экспорт Web (index.html, .wasm, .pck) index index.html; location /ws { proxy_pass http://127.0.0.1:9080; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; proxy_set_header Host $host; proxy_read_timeout 1h; } }