all-in-one/Containers/mastercontainer/Caddyfile

23 lines
399 B
Caddyfile
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/
}
}
http://:80 {
redir https://{host}{uri}
}
2021-11-30 18:20:42 +08:00
https://:8443 {
reverse_proxy localhost:8000
tls {
on_demand
}
}