diff options
author | Quentin Dufour <quentin@deuxfleurs.fr> | 2022-08-10 18:28:12 +0200 |
---|---|---|
committer | Quentin Dufour <quentin@deuxfleurs.fr> | 2022-08-10 18:28:12 +0200 |
commit | 9aef4f8aa5732395b7badbb3658fe67bb2c06ed5 (patch) | |
tree | f72ab1b466b0606487f3eccff88c243aaebd975f | |
parent | 8cd02639dc688dcb736b5c36dae822706862fac1 (diff) | |
download | garage-doc/caddy.tar.gz garage-doc/caddy.zip |
Add some documentation for Caddydoc/caddy
-rw-r--r-- | doc/book/cookbook/reverse-proxy.md | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/doc/book/cookbook/reverse-proxy.md b/doc/book/cookbook/reverse-proxy.md index 27add5bf..fb918778 100644 --- a/doc/book/cookbook/reverse-proxy.md +++ b/doc/book/cookbook/reverse-proxy.md @@ -280,3 +280,25 @@ Traefik's caching middleware is only available on [entreprise version](https://d [http.middlewares] [http.middlewares.gzip_compress.compress] ``` + +## Caddy + +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 +} + +*.web.garage.tld { + reverse_proxy localhost:3902 192.168.1.2:3900 example.tld:3900 +} + +admin.garage.tld { + reverse_proxy localhost:3903 +} +``` + +But at the same time, the `reverse_proxy` is very flexible. +For a production deployment, you should [read its documentation](https://caddyserver.com/docs/caddyfile/directives/reverse_proxy) as it supports features like DNS discovery of upstreams, load balancing with checks, streaming parameters, etc. + |