server { listen 80; server_name cactoz.su www.cactoz.su; root /usr/share/nginx/html; index index.html; location / { try_files $uri $uri/ =404; } # без хешей в именах файлов — просим браузер всегда переспрашивать свежесть location ~* \.(js|css)$ { add_header Cache-Control "no-cache"; try_files $uri =404; } location /ws { proxy_pass http://gameserver:9001; 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; } }