mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-02-24 13:57:01 +08:00
22 lines
399 B
Caddyfile
22 lines
399 B
Caddyfile
{
|
|
# auto_https will create redirects for https://{host}:8443 instead of https://{host}
|
|
# https redirects are added manually in the http://:80 block
|
|
auto_https disable_redirects
|
|
|
|
storage file_system {
|
|
root /mnt/docker-aio-config/caddy/
|
|
}
|
|
}
|
|
|
|
http://:80 {
|
|
redir https://{host}{uri}
|
|
}
|
|
|
|
https://:8443 {
|
|
|
|
reverse_proxy localhost:8000
|
|
|
|
tls {
|
|
on_demand
|
|
}
|
|
}
|