mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-08-31 16:24:03 +03:00
FILE / ScuroNeko/mtg
contrib/sni-router/Caddyfile
Исходный файл и его история в репозитории.
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.
12 lines
216 B
Caddyfile
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
|
|
}
|