Close to a fully working package

This commit is contained in:
Matt Jadud
2025-12-07 16:40:45 -05:00
parent 9f25c1cb09
commit 696b73fce6
7 changed files with 70 additions and 83 deletions

View File

@@ -1,38 +1,33 @@
{
debug
admin off
auto_https off
}
# 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.
# caddy run --watch --config /app/data/caddyfile --adapter caddyfile
# 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
}
api.{$CLOUDRON_APP_DOMAIN}:80 {
respond /health 200 {
body "OK API"
}
reverse_proxy localhost:3900
}
# 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.{$CLOUDRON_APP_DOMAIN}:80 {
respond /health 200 {
body "OK ADMIN"
}
reverse_proxy localhost:3903
}
{$CLOUDRON_APP_DOMAIN}:80 {
respond /health 200 {
body "OK S3"
}
reverse_proxy localhost:3900
}
*.web.{$CLOUDRON_APP_DOMAIN}:80 {
reverse_proxy localhost:3902
}
admin.garage.tld {
reverse_proxy localhost:3903 {
health_uri /health
health_port 3903
#health_interval 15s
#health_timeout 5s
}
}