all-in-one/Containers/mastercontainer/Caddyfile
Simon L a3d676b408
add redirect to https for port 8443
Signed-off-by: szaimen <szaimen@e.mail.de>
2022-05-23 15:16:13 +02:00

26 lines
450 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}
}
http://:8443 {
redir https://{host}:8443{uri}
}
https://:8443 {
reverse_proxy localhost:8000
tls {
on_demand
}
}