From d1dc921d735431584deea9e301c47e710f7d3d6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A0=D1=83=D1=81=D0=BB=D0=B0=D0=BD?= Date: Sun, 1 Oct 2023 02:38:23 +0600 Subject: [PATCH] Update Caddyfile --- configs/Caddyfile | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/configs/Caddyfile b/configs/Caddyfile index b0c92d4..19a6427 100644 --- a/configs/Caddyfile +++ b/configs/Caddyfile @@ -1,8 +1,24 @@ { email im@fruw.org - acme_dns google_domains {$API_KEY} + acme_dns google_domains {$CADDY_API_KEY} } +ok.fruw.org { + @block { + not remote_ip forwarded {$WHITE_LIST} + } + handle @block { + basicauth { + {$CADDY_LOGIN} {$CADDY_PASSWORD} + } + reverse_proxy localhost:50009 { + header_up X-Real-IP {remote_host} + } + } + respond "IP already added! :)" +} + + vault.fruw.org { handle_path / { reverse_proxy localhost:50000