- Removed AngularJS 1.4.8 completely — no more framework dependency - Extracted core RCON logic into pure vanilla JS (js/rcon.js) - Added lightweight hash-based SPA router (js/router.js) - Rewrote all 6 pages as vanilla JS modules in js/pages/ - Migrated Bootstrap 3 → Bootstrap 5 (cards instead of panels, bootstrap-icons instead of glyphicons) - Removed jQuery dependency (Bootstrap 5 is vanilla JS) - Purged all Angular templates from html/ - Removed npm artifacts (package.json, node_modules) - Added nginx.example.conf for static hosting - Updated rcon.css dark theme for BS5 variables - Static file only — no Node.js backend required Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
25 lines
670 B
Plaintext
25 lines
670 B
Plaintext
# 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
|
|
}
|