src.nth.io/

summaryrefslogtreecommitdiff
path: root/dendrite/server
diff options
context:
space:
mode:
authorLuke Hoersten <[email protected]>2026-03-28 13:42:08 -0500
committerLuke Hoersten <[email protected]>2026-03-28 13:42:08 -0500
commit45da5bca82200af63b0ee16479b267eb209386f3 (patch)
tree91725673c5cf227cda7edee89f2909a30251eda3 /dendrite/server
parent7ac3515aa05a60f24176cfda0364694ff2fdb8c3 (diff)
Added soju role.
Diffstat (limited to 'dendrite/server')
-rw-r--r--dendrite/server/tasks/main.yaml1
-rw-r--r--dendrite/server/templates/nginx.conf.j24
2 files changed, 3 insertions, 2 deletions
diff --git a/dendrite/server/tasks/main.yaml b/dendrite/server/tasks/main.yaml
index 7971ee1..b2395d0 100644
--- a/dendrite/server/tasks/main.yaml
+++ b/dendrite/server/tasks/main.yaml
@@ -108,3 +108,4 @@
- name: ensure service is started
become: yes
systemd: name="dendrite@{{dendrite_port}}.service" enabled="yes" state="started"
+
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}};
}