summary refs log tree commit diff
path: root/docs/workers.md
diff options
context:
space:
mode:
authorSumner Evans <me@sumnerevans.com>2021-11-01 05:35:55 -0600
committerGitHub <noreply@github.com>2021-11-01 11:35:55 +0000
commitece84f2c450d986e54acc80971225fb02f4e1d05 (patch)
treee107d9590f3ed5965a6756cc9eb599058ecb0905 /docs/workers.md
parent Add metrics to the threadpools (#11178) (diff)
downloadsynapse-ece84f2c450d986e54acc80971225fb02f4e1d05.tar.xz
Improve code formatting and fix a few typos in docs (#11221)
* Labeled a lot more code blocks with the appropriate type
* Fixed a couple of minor typos (missing/extraneous commas)

Signed-off-by: Sumner Evans <me@sumnerevans.com>
Diffstat (limited to 'docs/workers.md')
-rw-r--r--docs/workers.md18
1 files changed, 10 insertions, 8 deletions
diff --git a/docs/workers.md b/docs/workers.md
index f1673d67d0..f88e2c1de3 100644
--- a/docs/workers.md
+++ b/docs/workers.md
@@ -443,19 +443,19 @@ In the `media_repository` worker configuration file, configure the http listener
 expose the `media` resource. For example:
 
 ```yaml
-    worker_listeners:
-     - type: http
-       port: 8085
-       resources:
-         - names:
-           - media
+worker_listeners:
+ - type: http
+   port: 8085
+   resources:
+     - names:
+       - media
 ```
 
 Note that if running multiple media repositories they must be on the same server
 and you must configure a single instance to run the background tasks, e.g.:
 
 ```yaml
-    media_instance_running_background_jobs: "media-repository-1"
+media_instance_running_background_jobs: "media-repository-1"
 ```
 
 Note that if a reverse proxy is used , then `/_matrix/media/` must be routed for both inbound client and federation requests (if they are handled separately).
@@ -492,7 +492,9 @@ must therefore be configured with the location of the main instance, via
 the `worker_main_http_uri` setting in the `frontend_proxy` worker configuration
 file. For example:
 
-    worker_main_http_uri: http://127.0.0.1:8008
+```yaml
+worker_main_http_uri: http://127.0.0.1:8008
+```
 
 ### Historical apps