|
|
@@ -23,12 +23,9 @@ defaults
|
|
23
|
23
|
# --- HTTP :80 — ACME challenges + redirect -----------------------------------
|
|
24
|
24
|
|
|
25
|
25
|
frontend http
|
|
26
|
|
- # Explicit v4 + v6 binds so IPv6 clients are accepted regardless of the
|
|
27
|
|
- # host's net.ipv6.bindv6only sysctl. `v6only` on the v6 bind prevents it
|
|
28
|
|
- # from also accepting v4-mapped connections, which would otherwise
|
|
29
|
|
- # conflict with the explicit v4 bind on the same port.
|
|
30
|
|
- bind 0.0.0.0:80
|
|
31
|
|
- bind [::]:80 v6only
|
|
|
26
|
+ # Explicit v4 + v6 binds so IPv6 clients are accepted regardless of
|
|
|
27
|
+ # the host's net.ipv6.bindv6only sysctl.
|
|
|
28
|
+ bind :80,[::]:80
|
|
32
|
29
|
mode http
|
|
33
|
30
|
|
|
34
|
31
|
# Let Caddy answer ACME HTTP-01 challenges for Let's Encrypt.
|
|
|
@@ -40,8 +37,7 @@ frontend http
|
|
40
|
37
|
# --- TLS :443 — SNI-based routing -------------------------------------------
|
|
41
|
38
|
|
|
42
|
39
|
frontend tls
|
|
43
|
|
- bind 0.0.0.0:443
|
|
44
|
|
- bind [::]:443 v6only
|
|
|
40
|
+ bind :443,[::]:443
|
|
45
|
41
|
tcp-request inspect-delay 5s
|
|
46
|
42
|
tcp-request content accept if { req_ssl_hello_type 1 }
|
|
47
|
43
|
|