aboutsummaryrefslogtreecommitdiff
path: root/doc/book/cookbook/reverse-proxy.md
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-08-29 16:45:05 +0200
committerAlex Auvolat <alex@adnab.me>2022-08-29 16:45:05 +0200
commit1921f4f7e65516e04b86f54a298d94259bbd85be (patch)
tree298acee7b6c1143ea70e36cbdcbc94b0ff51af98 /doc/book/cookbook/reverse-proxy.md
parente935861854deed5d1ca66767fc51d9849201a4dd (diff)
parentebc20a879812dda6ab240a134a67b4675e24c435 (diff)
downloadgarage-1921f4f7e65516e04b86f54a298d94259bbd85be.tar.gz
garage-1921f4f7e65516e04b86f54a298d94259bbd85be.zip
Merge branch 'lx-perf-improvements' into netapp-stream-body
Diffstat (limited to 'doc/book/cookbook/reverse-proxy.md')
-rw-r--r--doc/book/cookbook/reverse-proxy.md22
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.
+