src.nth.io/

summaryrefslogtreecommitdiff
path: root/dendrite/server/templates/nginx.conf.j2
diff options
context:
space:
mode:
Diffstat (limited to 'dendrite/server/templates/nginx.conf.j2')
-rw-r--r--dendrite/server/templates/nginx.conf.j24
1 files changed, 2 insertions, 2 deletions
diff --git a/dendrite/server/templates/nginx.conf.j2 b/dendrite/server/templates/nginx.conf.j2
index aa7125c..9e13b5e 100644
--- a/dendrite/server/templates/nginx.conf.j2
+++ b/dendrite/server/templates/nginx.conf.j2
@@ -1,4 +1,4 @@
-limit_req_zone $binary_remote_addr zone=dendrite_reg:10m rate=2r/m;
+limit_req_zone $binary_remote_addr zone=dendrite_reg_{{dendrite_instance}}:10m rate=2r/m;
server {
listen 80;
@@ -39,7 +39,7 @@ server {
proxy_read_timeout 600;
location ~* ^/_matrix/client/[^/]+/register {
- limit_req zone=dendrite_reg burst=3 nodelay;
+ limit_req zone=dendrite_reg_{{dendrite_instance}} burst=3 nodelay;
proxy_pass http://127.0.0.1:{{nginx_proxy_port}};
}