summary refs log tree commit diff
path: root/docker/complement
diff options
context:
space:
mode:
authorreivilibre <oliverw@matrix.org>2022-05-23 14:11:06 +0100
committerGitHub <noreply@github.com>2022-05-23 14:11:06 +0100
commit67aae05ece9b6e07fedc73f737c0d6db6351d6c7 (patch)
treee8fd107da64ea40ad70f72043e794420658d472c /docker/complement
parentAdd some type hints to tests files (#12833) (diff)
downloadsynapse-67aae05ece9b6e07fedc73f737c0d6db6351d6c7.tar.xz
Support registering Application Services when running with workers under Complement. (#12826)
Co-authored-by: Patrick Cloke <clokep@users.noreply.github.com>
Diffstat (limited to 'docker/complement')
-rwxr-xr-xdocker/complement/conf-workers/start-complement-synapse-workers.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/docker/complement/conf-workers/start-complement-synapse-workers.sh b/docker/complement/conf-workers/start-complement-synapse-workers.sh
index a10b57a53f..b7e2444000 100755
--- a/docker/complement/conf-workers/start-complement-synapse-workers.sh
+++ b/docker/complement/conf-workers/start-complement-synapse-workers.sh
@@ -36,6 +36,11 @@ export SYNAPSE_WORKER_TYPES="\
     appservice, \
     pusher"
 
+# Add Complement's appservice registration directory, if there is one
+# (It can be absent when there are no application services in this test!)
+if [ -d /complement/appservice ]; then
+    export SYNAPSE_AS_REGISTRATION_DIR=/complement/appservice
+fi
 
 # Generate a TLS key, then generate a certificate by having Complement's CA sign it
 # Note that both the key and certificate are in PEM format (not DER).