aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex <alex@adnab.me>2022-11-14 12:21:56 +0000
committerAlex <alex@adnab.me>2022-11-14 12:21:56 +0000
commit39ac295eb749d3dd996c0a8d6fe031269e6a2451 (patch)
treea6cb2c9a060d05177a7298204c45c618e3e804fe
parent66f2daa0259538c64508b37cec89d76a74a71a02 (diff)
parent8dfc9097590822f5c5a8a4cb2def424e887b10cd (diff)
downloadgarage-39ac295eb749d3dd996c0a8d6fe031269e6a2451.tar.gz
garage-39ac295eb749d3dd996c0a8d6fe031269e6a2451.zip
Merge pull request 'Improve Nginx reverse proxy example' (#413) from baptiste/garage:nginx_fix into main
Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/413
-rw-r--r--doc/book/cookbook/reverse-proxy.md14
1 files changed, 9 insertions, 5 deletions
diff --git a/doc/book/cookbook/reverse-proxy.md b/doc/book/cookbook/reverse-proxy.md
index fb918778..c8fde28d 100644
--- a/doc/book/cookbook/reverse-proxy.md
+++ b/doc/book/cookbook/reverse-proxy.md
@@ -70,14 +70,16 @@ A possible configuration:
```nginx
upstream s3_backend {
- # if you have a garage instance locally
+ # If you have a garage instance locally.
server 127.0.0.1:3900;
- # you can also put your other instances
+ # You can also put your other instances.
server 192.168.1.3:3900;
- # domain names also work
+ # Domain names also work.
server garage1.example.com:3900;
- # you can assign weights if you have some servers
- # that are more powerful than others
+ # A "backup" server is only used if all others have failed.
+ server garage-remote.example.com:3900 backup;
+ # You can assign weights if you have some servers
+ # that can serve more requests than others.
server garage2.example.com:3900 weight=2;
}
@@ -96,6 +98,8 @@ server {
proxy_pass http://s3_backend;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
+ # Disable buffering to a temporary file.
+ proxy_max_temp_file_size 0;
}
}
```