add captive portals to caddy
Signed-off-by: Zoey <zoey@z0ey.de>
This commit is contained in:
parent
a997eeecf0
commit
c1c111e709
1 changed files with 21 additions and 0 deletions
21
Caddyfile
21
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 "<meta http-equiv=\"refresh\" content=\"0;url=https://support.mozilla.org/kb/captive-portal\"/>"
|
||||
}
|
||||
http://:80 {
|
||||
redir https://{host}{uri} permanent
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue