all-in-one/Containers/mastercontainer/Caddyfile

38 lines
629 B
Text
Raw Normal View History

2021-11-30 18:20:42 +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/
}
log {
level ERROR
}
servers {
protocols h1 h2 h2c
}
on_demand_tls {
ask http://127.0.0.1:9876/
}
2021-11-30 18:20:42 +08:00
}
http://:80 {
redir https://{host}{uri} permanent
}
https://:8443 {
2021-11-30 18:20:42 +08:00
reverse_proxy 127.0.0.1:8000
2021-11-30 18:20:42 +08:00
tls {
on_demand
issuer acme {
disable_tlsalpn_challenge
}
2021-11-30 18:20:42 +08:00
}
}