2021-11-30 18:20:42 +08:00
|
|
|
{
|
2022-05-19 22:26:11 +08:00
|
|
|
# auto_https will create redirects for https://{host}:8443 instead of https://{host}
|
|
|
|
# https redirects are added manually in the http://:80 block
|
2021-11-30 18:20:42 +08:00
|
|
|
auto_https disable_redirects
|
|
|
|
|
|
|
|
storage file_system {
|
|
|
|
root /mnt/docker-aio-config/caddy/
|
|
|
|
}
|
2023-02-12 03:49:30 +08:00
|
|
|
|
|
|
|
log {
|
|
|
|
level ERROR
|
|
|
|
}
|
2023-06-21 03:22:21 +08:00
|
|
|
|
|
|
|
servers {
|
2023-06-21 04:19:33 +08:00
|
|
|
protocols h1 h2 h2c
|
2023-06-21 03:22:21 +08:00
|
|
|
}
|
2023-08-10 17:36:39 +08:00
|
|
|
|
|
|
|
on_demand_tls {
|
2024-05-28 23:24:28 +08:00
|
|
|
ask http://127.0.0.1:9876/
|
2023-08-10 17:36:39 +08:00
|
|
|
}
|
2021-11-30 18:20:42 +08:00
|
|
|
}
|
|
|
|
|
2022-05-19 22:26:11 +08:00
|
|
|
http://:80 {
|
2023-10-10 22:03:40 +08:00
|
|
|
redir https://{host}{uri} permanent
|
2022-05-19 22:26:11 +08:00
|
|
|
}
|
|
|
|
|
2023-08-10 19:02:18 +08:00
|
|
|
https://:8443 {
|
2021-11-30 18:20:42 +08:00
|
|
|
|
2024-05-28 23:24:28 +08:00
|
|
|
reverse_proxy 127.0.0.1:8000
|
2021-11-30 18:20:42 +08:00
|
|
|
|
|
|
|
tls {
|
|
|
|
on_demand
|
2023-02-16 02:36:26 +08:00
|
|
|
issuer acme {
|
|
|
|
disable_tlsalpn_challenge
|
|
|
|
}
|
2021-11-30 18:20:42 +08:00
|
|
|
}
|
|
|
|
}
|