From c1c111e7098f2da7fd7eac880452355fd8e54752 Mon Sep 17 00:00:00 2001 From: Zoey Date: Sun, 14 May 2023 15:29:35 +0200 Subject: [PATCH] add captive portals to caddy Signed-off-by: Zoey --- Caddyfile | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/Caddyfile b/Caddyfile index 2ab18afe..3114ce60 100644 --- a/Caddyfile +++ b/Caddyfile @@ -3,6 +3,27 @@ protocols h1 h2c } } +http://captive.apple.com:80 { + respond "Success" +} +http://clients3.google.com:80 { + respond 204 +} +http://connectivitycheck.gstatic.com:80 { + respond 204 +} +http://www.msftncsi.com:80 { + respond "Microsoft NCSI" +} +http://www.msftconnecttest.com:80 { + respond "Microsoft Connect Test" +} +http://ipv6.msftconnecttest.com:80 { + respond "Microsoft Connect Test" +} +http://detectportal.firefox.com:80 { + respond "" +} http://:80 { redir https://{host}{uri} permanent }