Qortora · Search · Indexed page

caddy.communityFetched 2026-08-17T13:10:54Z

Example: Cockpit - Wiki - Caddy Community

Cockpit is a web interface for managing a server. It creates it’s own self signed certificate by default. Here is how to configure cockpit behind caddy to have real certificates instead. sub-domain (https://cockpit.ex…

Open original source · Full cached text

Example: Cockpit - Wiki - Caddy Community = 40rem)" rel="stylesheet" data-target="chat_desktop" /> = 40rem)" rel="stylesheet" data-target="discourse-reactions_desktop" /> = 40rem)" rel="stylesheet" data-target="poll_desktop" /> = 40rem)" rel="stylesheet" data-target="desktop_theme" data-theme-id="1" data-theme-name="caddy custom"/> Example: Cockpit Wiki carlwgeorge (Carl George) May 20, 2020, 3:49am 1 Cockpit is a web interface for managing a server. It creates it’s own self signed certificate by default. Here is how to configure cockpit behind caddy to have real certificates instead. sub-domain (https://cockpit.example.com) /etc/cockpit/cockpit.conf [WebService] Origins = https://cockpit.example.com wss://cockpit.example.com ProtocolHeader = X-Forwarded-Proto /etc/caddy/Caddyfile cockpit.example.com { reverse_proxy https://localhost:9090 { transport http { tls_insecure_skip_verify } } } sub-directory (https://example.com/cockpit/) /etc/cockpit/cockpit.conf [WebService] Origins = https://example.com wss://example.com ProtocolHeader = X-Forwarded-Proto UrlRoot=/cockpit /etc/caddy/Caddyfile example.com { reverse_proxy /cockpit/* localhost:9090 { transport http { tls_insecure_skip_verify } } } One thing to point out with the sub-directory approach is that the trailing slash is required by cockpit. If you would like Caddy to silently accept requests without the trailing slash, you can add this line to your Caddyfile: rewrite /cockpit /cockpit/ Alternatively, you can configure Caddy to redirect clients to add the trailing slash: redir /cockpit /cockpit/ 10 Likes Problems migrating working reverse_proxy to V2 between Caddy and Cockpit Using caddy as a proxy to Cockpit Tattered1900 (Tattered1900) February 4, 2023, 9:06pm 3 amazing, thanks! Problem is, now I get logged out everytime my cockpit tab closes (as opposed to logging in via local ip). Is that any workaround this?