Putting the panel behind HTTPS
The panel speaks plain HTTP. For anything beyond localhost, keep bind-address: 127.0.0.1, put a reverse proxy with HTTPS in front, and tell the plugin:
panel:
behind-https-proxy: true
public-url: "https://ac.example.com"
behind-https-proxy adds the Secure flag to cookies and trusts X-Forwarded-For for the address in the audit log and rate limits. public-url is what /ac panel puts in the link.
nginx#
server {
listen 443 ssl http2;
server_name ac.example.com;
ssl_certificate /etc/letsencrypt/live/ac.example.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/ac.example.com/privkey.pem;
location / {
proxy_pass http://127.0.0.1:8765;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Proto https;
proxy_buffering off;
proxy_read_timeout 1h;
}
}
Caddy#
ac.example.com {
reverse_proxy 127.0.0.1:8765 {
flush_interval -1
}
}
Turn buffering off in the proxy: the live feed uses server-sent events and must not be held back.