Attempt at caddyfile/proxy, simplification

The idea of proxying in front of Garage may be warranted, to handle some
of the ways that it subdomains further. However, I'm not there yet.
This commit is contained in:
Matt Jadud
2025-12-07 07:56:09 -05:00
parent 42105c4f5c
commit 9f25c1cb09
9 changed files with 74 additions and 35 deletions

38
caddyfile Normal file
View File

@@ -0,0 +1,38 @@
{
debug
}
# I feel like a proxy in front of Garage (within the container)
# would let me redirect `/health` from the TLD through to the admin API,
# which is the only place the healthcheck URL exists. But, Cloudron has no notion
# of the healthcheck being somewhere else.
# https://garagehq.deuxfleurs.fr/documentation/cookbook/reverse-proxy/
s3.garage.tld, *.s3.garage.tld {
reverse_proxy localhost:3900 {
health_uri /health
health_port 3903
#health_interval 15s
#health_timeout 5s
}
}
# These would need to be templated, I think, so they match the domain
# that is coming in to the container.
*.web.garage.tld {
reverse_proxy localhost:3902 {
health_uri /health
health_port 3903
#health_interval 15s
#health_timeout 5s
}
}
admin.garage.tld {
reverse_proxy localhost:3903 {
health_uri /health
health_port 3903
#health_interval 15s
#health_timeout 5s
}
}