mirror of
https://git.deuxfleurs.fr/Deuxfleurs/garage.git
synced 2024-11-25 09:31:00 +00:00
cookbook/reverse-proxy.md: Document how to use healthchecks for caddy.
This commit is contained in:
parent
4c143776bf
commit
ee88ccf2b2
1 changed files with 18 additions and 3 deletions
|
@ -291,15 +291,30 @@ Your Caddy configuration can be as simple as:
|
||||||
|
|
||||||
```caddy
|
```caddy
|
||||||
s3.garage.tld, *.s3.garage.tld {
|
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 {
|
*.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 {
|
admin.garage.tld {
|
||||||
reverse_proxy localhost:3903
|
reverse_proxy localhost:3903 {
|
||||||
|
health_uri /health
|
||||||
|
health_port 3903
|
||||||
|
#health_interval 15s
|
||||||
|
#health_timeout 5s
|
||||||
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue