Мультиплеер: выделенный WebSocket-сервер, призраки других игроков
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user