summary refs log tree commit diff
diff options
context:
space:
mode:
authorAndrew Morgan <andrew@amorgan.xyz>2021-04-27 11:40:21 +0100
committerAndrew Morgan <andrew@amorgan.xyz>2021-04-27 11:40:21 +0100
commit50adefae981c5631a5a88d81fc491407a7537cc4 (patch)
tree31590d5f49fa12e39993ee92bb2271d6dae86578
parentUse current state table for `presence.get_interested_remotes` (#9887) (diff)
downloadsynapse-github/anoa/fix_format_strings.tar.xz
Prevent curly braces from breaking in format strings github/anoa/fix_format_strings anoa/fix_format_strings
-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}
-}
+}}
 """