From 10cba2ffb8754029971d1ed80e1bfd478b6e8cb8 Mon Sep 17 00:00:00 2001 From: Pratham Patel Date: Sun, 24 Jul 2022 09:47:03 +0530 Subject: [PATCH] enable cockpit --- Caddyfile | 14 ++++++++++++++ cockpit.conf | 3 +++ 2 files changed, 17 insertions(+) create mode 100644 cockpit.conf diff --git a/Caddyfile b/Caddyfile index 432f431..c4644ba 100644 --- a/Caddyfile +++ b/Caddyfile @@ -52,3 +52,17 @@ storage.thefossguy.com { tls /etc/ssl/certs/certificate.pem /etc/ssl/private/key.pem redir https://cloud.thefossguy.com{uri} } + + +admin.thefossguy.com { + reverse_proxy https://10.0.0.19:9090 { + transport http { + tls_insecure_skip_verify + } + } +} + +cockpit.thefossguy.com { + tls /etc/ssl/certs/certificate.pem /etc/ssl/private/key.pem + redir https://admin.thefossguy.com{uri} +} diff --git a/cockpit.conf b/cockpit.conf new file mode 100644 index 0000000..3ae59d1 --- /dev/null +++ b/cockpit.conf @@ -0,0 +1,3 @@ +[WebService] +Origins = https://admin.thefossguy.com wss://admin.thefossguy.com +ProtocolHeader = X-Forwarded-Proto