aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Davies <jpds@protonmail.com>2023-02-14 18:39:05 +0000
committerJonathan Davies <jpds@protonmail.com>2023-02-14 18:39:05 +0000
commitee88ccf2b27c1e94922ce542da221560bbe2e6e0 (patch)
tree4085a9adc8e582ae11e6b5f50933731a33e6a1cb
parent4c143776bfa258f78caf5373572aef80b1cb60e6 (diff)
downloadgarage-ee88ccf2b27c1e94922ce542da221560bbe2e6e0.tar.gz
garage-ee88ccf2b27c1e94922ce542da221560bbe2e6e0.zip
cookbook/reverse-proxy.md: Document how to use healthchecks for caddy.
-rw-r--r--doc/book/cookbook/reverse-proxy.md21
1 files changed, 18 insertions, 3 deletions
diff --git a/doc/book/cookbook/reverse-proxy.md b/doc/book/cookbook/reverse-proxy.md
index c7dcf6a8..65a42271 100644
--- a/doc/book/cookbook/reverse-proxy.md
+++ b/doc/book/cookbook/reverse-proxy.md
@@ -291,15 +291,30 @@ Your Caddy configuration can be as simple as:
```caddy
s3.garage.tld, *.s3.garage.tld {
- reverse_proxy localhost:3900 192.168.1.2:3900 example.tld:3900
+ reverse_proxy localhost:3900 192.168.1.2:3900 example.tld:3900 {
+ health_uri /health
+ health_port 3903
+ #health_interval 15s
+ #health_timeout 5s
+ }
}
*.web.garage.tld {
- reverse_proxy localhost:3902 192.168.1.2:3902 example.tld:3902
+ reverse_proxy localhost:3902 192.168.1.2:3902 example.tld:3902 {
+ health_uri /health
+ health_port 3903
+ #health_interval 15s
+ #health_timeout 5s
+ }
}
admin.garage.tld {
- reverse_proxy localhost:3903
+ reverse_proxy localhost:3903 {
+ health_uri /health
+ health_port 3903
+ #health_interval 15s
+ #health_timeout 5s
+ }
}
```