FILE / ScuroNeko/mtg

contrib/sni-router/Caddyfile

Исходный файл и его история в репозитории.
FILE d0412b21f6a5a5033de244d3eb57017558c77cec
Files
mtg/contrib/sni-router/Caddyfile
T
dolonet d0412b21f6 Fix ACME HTTP-01 passthrough in HAProxy config
Add an ACL that routes /.well-known/acme-challenge/ requests on :80
to Caddy instead of redirecting to HTTPS, so Let's Encrypt certificate
issuance works out of the box.

Also simplify Caddyfile to use Caddy's http_port/https_port directives.
2026-04-10 10:50:26 +00:00

12 lines
216 B
Caddyfile

{
# Caddy sits behind HAProxy which passes raw TLS through on :8443.
# ACME HTTP-01 challenges arrive on :80 via HAProxy's acl passthrough.
http_port 80
https_port 8443
}
{$DOMAIN} {
root * /srv
file_server
}