# Example nginx config for WebRcon # Copy the project files to /var/www/webrcon (or wherever you like) # and symlink this file into /etc/nginx/sites-enabled/ server { listen 80; server_name rcon.yourdomain.com; root /var/www/webrcon; index index.html; # SPA routing — all paths serve index.html location / { try_files $uri $uri/ /index.html; } # Cache static assets aggressively (all deps are CDN-loaded anyway) location ~* \.(css|js|svg|png|jpg|jpeg|gif|ico)$ { expires 30d; add_header Cache-Control "public, immutable"; } # No backend — browser talks WebSocket directly to the game server }