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:
38
caddyfile
Normal file
38
caddyfile
Normal 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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user