2021-11-30 11:20:42 +01:00
|
|
|
{
|
2022-05-19 16:26:11 +02: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 11:20:42 +01:00
|
|
|
auto_https disable_redirects
|
|
|
|
|
|
|
|
|
|
storage file_system {
|
|
|
|
|
root /mnt/docker-aio-config/caddy/
|
|
|
|
|
}
|
2023-02-11 20:49:30 +01:00
|
|
|
|
|
|
|
|
log {
|
|
|
|
|
level ERROR
|
|
|
|
|
}
|
2023-06-20 21:22:21 +02:00
|
|
|
|
|
|
|
|
servers {
|
2023-06-20 22:19:33 +02:00
|
|
|
protocols h1 h2 h2c
|
2023-06-20 21:22:21 +02:00
|
|
|
}
|
2023-08-10 11:36:39 +02:00
|
|
|
|
|
|
|
|
on_demand_tls {
|
|
|
|
|
ask http://localhost:9876/
|
|
|
|
|
}
|
2021-11-30 11:20:42 +01:00
|
|
|
}
|
|
|
|
|
|
2022-05-19 16:26:11 +02:00
|
|
|
http://:80 {
|
|
|
|
|
redir https://{host}{uri}
|
|
|
|
|
}
|
|
|
|
|
|
2023-08-10 11:36:39 +02:00
|
|
|
https::8443 {
|
2021-11-30 11:20:42 +01:00
|
|
|
|
|
|
|
|
reverse_proxy localhost:8000
|
|
|
|
|
|
|
|
|
|
tls {
|
|
|
|
|
on_demand
|
2023-02-15 19:36:26 +01:00
|
|
|
issuer acme {
|
|
|
|
|
disable_tlsalpn_challenge
|
|
|
|
|
}
|
2021-11-30 11:20:42 +01:00
|
|
|
}
|
|
|
|
|
}
|