From dc5d71d3c416d74264df35d11f2cce6c998ce175 Mon Sep 17 00:00:00 2001 From: Pratham Patel Date: Tue, 26 Jul 2022 14:29:39 +0530 Subject: [PATCH] use caddy auth for torr subdomain --- Caddyfile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Caddyfile b/Caddyfile index 46a2148..16ad885 100644 --- a/Caddyfile +++ b/Caddyfile @@ -70,10 +70,18 @@ cockpit.thefossguy.com { torr.thefossguy.com { tls /etc/ssl/certs/certificate.pem /etc/ssl/private/key.pem + + basicauth { + pratham + } reverse_proxy 10.0.0.14:9091 } torrs.thefossguy.com { tls /etc/ssl/certs/certificate.pem /etc/ssl/private/key.pem + + basicauth { + pratham + } redir https://torr.thefossguy.com{uri} }