commit a54dc00fd4a4898ea66f978789c459cb4fae1372 parent f0ccdefad17dfba76ff170e29aa1426b9c47cae3 Author: Henry Unite <unitehenry@gmail.com> Date: Sat, 25 Jul 2026 06:13:24 +0000 chore: nginx config Diffstat:
| M | nginx/nginx.conf | | | 22 | ++++------------------ |
1 file changed, 4 insertions(+), 18 deletions(-)
diff --git a/nginx/nginx.conf b/nginx/nginx.conf @@ -1,29 +1,15 @@ events {} http { - limit_req_zone $limit_key zone=unauth:10m rate=5r/s; - - map $remote_user $limit_key { - default $binary_remote_addr; # No valid user -> rate limit by IP - "" $binary_remote_addr; # Explicit empty - ~^. ""; # Any non-empty $remote_user -> skip limit - } - -server { + server { server_name example.com; - auth_basic "Restricted Area"; - auth_basic_user_file /etc/nginx/.htpasswd; - - limit_req zone=unauth burst=10 nodelay; - limit_req_status 429; - location / { - proxy_pass http://127.0.0.1:4096; + proxy_pass http://127.0.0.1:8080/guacamole; } - location /guacamole { - proxy_pass http://127.0.0.1:8080/guacamole; + location /mcp/ { + proxy_pass http://127.0.0.1:8000/; } listen 80;