HTTP 500, HTTP 404…etc
Cockpit’s web server automatically redirects to port 443 with a self-defined SSL certificate.
For my use case, I wanted SSL to terminate at Traefik, so I set the backend to point to http and disabled Cockpit’s SSL redirect.
Note: To proxy to my host that’s running traefik and docker, I need to use the docker network’s local IP (172.18.0.1), not the server’s LAN IP (192.168.xxx.xxx).
```rules.toml [backends.backend-host-cockpit-http] [backends.backend-host-cockpit-http.servers] [backends.backend-host-cockpit-http.servers.server-1] url = "http://172.18.0.1:9090" ```
```cockpit.conf [WebService] Origins = https://host-cockpit.mydomain.com wss://host-cockpit.mydomain.com ProtocolHeader = X-Forwarded-Proto AllowUnencrypted=true ```