# Defense-in-depth for an aaPanel reverse-proxy server block. # Include this file inside the public aaPanel `server {}` block, before the # catch-all proxy location. It intentionally disables browser terminal and # other privileged WebSocket features; normal signed HTTP API calls continue. # # This is not sufficient while the aaPanel backend port remains reachable # from untrusted networks. Bind/restrict that port with a firewall, security # group, VPN, or SSH tunnel as the primary control. location = /sock_shell { return 403; } location = /webssh { return 403; } location = /ws_panel { return 403; } location = /ws_home { return 403; } location = /ws_project { return 403; } location = /ws_model { return 403; } location = /workorder_client { return 403; } location ~ ^/v2/(?:sock_shell|webssh|ws_panel|ws_home|ws_project|ws_model|workorder_client)$ { return 403; }