# PiCloud production Caddyfile. # # Set PICLOUD_DOMAIN and PICLOUD_ADMIN_EMAIL in the environment Caddy is # started from (docker-compose.prod.yml passes them through). Caddy then # obtains and renews a Let's Encrypt cert automatically for that domain. { email {$PICLOUD_ADMIN_EMAIL} } {$PICLOUD_DOMAIN} { encode zstd gzip handle /healthz { reverse_proxy picloud:8080 } handle /api/admin/* { reverse_proxy picloud:8080 } handle /api/execute/* { reverse_proxy picloud:8080 } handle /exec/* { reverse_proxy picloud:8080 } handle { reverse_proxy dashboard:80 } log { output stdout format json } }