mirror of
https://github.com/nextcloud/all-in-one.git
synced 2024-11-14 19:15:08 +08:00
f5f8c836d2
Signed-off-by: Simon L <szaimen@e.mail.de>
44 lines
714 B
Caddyfile
44 lines
714 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/
|
|
}
|
|
|
|
log {
|
|
level ERROR
|
|
}
|
|
|
|
servers {
|
|
protocols h1 h2 h2c
|
|
}
|
|
|
|
on_demand_tls {
|
|
ask http://localhost:9876/
|
|
}
|
|
}
|
|
|
|
http://:80 {
|
|
redir https://{host}{uri}
|
|
}
|
|
|
|
https://:8080 {
|
|
reverse_proxy localhost:8000
|
|
tls internal {
|
|
on_demand
|
|
}
|
|
}
|
|
|
|
https://:8443 {
|
|
|
|
reverse_proxy localhost:8000
|
|
|
|
tls {
|
|
on_demand
|
|
issuer acme {
|
|
disable_tlsalpn_challenge
|
|
}
|
|
}
|
|
}
|