summary refs log tree commit diff
path: root/docker
diff options
context:
space:
mode:
authorPatrick Cloke <clokep@users.noreply.github.com>2021-05-24 15:32:45 -0400
committerGitHub <noreply@github.com>2021-05-24 15:32:45 -0400
commit7d90d6ce9b6733bdebd4c5aca0c785e28e265e13 (patch)
tree1788f90cbea7ac317fe5e3d492c2894762445c51 /docker
parentAdd missing type hints to synapse.util (#9982) (diff)
downloadsynapse-7d90d6ce9b6733bdebd4c5aca0c785e28e265e13.tar.xz
Run complement with Synapse workers manually. (#10039)
Adds an option to complement.sh to run Synapse in worker
mode (instead of the default monolith mode).
Diffstat (limited to 'docker')
-rwxr-xr-xdocker/configure_workers_and_start.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/docker/configure_workers_and_start.py b/docker/configure_workers_and_start.py
index 4be6afc65d..1d22a4d571 100755
--- a/docker/configure_workers_and_start.py
+++ b/docker/configure_workers_and_start.py
@@ -184,18 +184,18 @@ stderr_logfile_maxbytes=0
 """
 
 NGINX_LOCATION_CONFIG_BLOCK = """
-    location ~* {endpoint} {
+    location ~* {endpoint} {{
         proxy_pass {upstream};
         proxy_set_header X-Forwarded-For $remote_addr;
         proxy_set_header X-Forwarded-Proto $scheme;
         proxy_set_header Host $host;
-    }
+    }}
 """
 
 NGINX_UPSTREAM_CONFIG_BLOCK = """
-upstream {upstream_worker_type} {
+upstream {upstream_worker_type} {{
 {body}
-}
+}}
 """