NodeSentinel documentation
HTTPS & Reverse Proxy
Publish the dashboard with TLS, forward WebSocket upgrades and enable secure cookies behind a trusted proxy.
Recommended topology
Run NodeSentinel locally on 127.0.0.1:8888. A reverse proxy terminates HTTPS and forwards browser and WebSocket traffic. Restrict direct access to the dashboard port with a firewall.
Unencrypted HTTP exposes login credentials, session cookies, agent keys and measurements. Even LAN-only environments should use HTTPS.
Caddy
monitor.example.com {
reverse_proxy 127.0.0.1:8888
}Caddy supports WebSocket upgrades automatically and can manage public TLS certificates.
nginx
server {
listen 443 ssl;
server_name monitor.example.com;
ssl_certificate /etc/ssl/monitor.example.com.crt;
ssl_certificate_key /etc/ssl/monitor.example.com.key;
location /api/agent/connect {
proxy_pass http://127.0.0.1:8888;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Proto $scheme;
}
location / {
proxy_pass http://127.0.0.1:8888;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
}
}Traefik
Forward the domain through a TLS router to http://127.0.0.1:8888. Traefik sets forwarded-protocol headers and supports WebSocket traffic.
Trusted proxies
For the dashboard to securely determine that the original connection uses HTTPS, the proxy source IP or network must be explicitly trusted. This ensures session cookies are correctly marked Secure.
NODESENTINEL_TRUSTED_PROXIES=127.0.0.1,172.18.0.0/16Forwarded headers from all untrusted sources are discarded. Do not use trust settings such as 0.0.0.0/0.
Agent address
The push agent receives only the external encrypted WebSocket address. Ensure the agent can resolve the domain and reach port 443.
curl -I https://monitor.example.com
openssl s_client -connect monitor.example.com:443 -servername monitor.example.comPrivate certificate authorities
For your own certificate authority, mount only the public CA certificate into the agent. Set its path with NODESENTINEL_HUB_CA_CERT. The dashboard or proxy private key must never reach an agent host.