Мультиплеер: выделенный WebSocket-сервер, призраки других игроков

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-21 12:18:13 +05:00
co-authored by Claude Sonnet 5.5
parent c113faec65
commit 628319b36d
10 changed files with 252 additions and 0 deletions
+17
View File
@@ -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;
}
}