summary refs log tree commit diff
path: root/contrib/docker/conf/homeserver.yaml
diff options
context:
space:
mode:
authorkaiyou <pierre@jaury.eu>2018-02-05 21:28:15 +0100
committerkaiyou <pierre@jaury.eu>2018-02-05 21:28:15 +0100
commit81010a126e9bbcce018b104921ff5221a67f99cc (patch)
treef14689b3059bcad3309a09904bbf3ac36bf373bb /contrib/docker/conf/homeserver.yaml
parentRemove docker related files from the python manifest (diff)
downloadsynapse-81010a126e9bbcce018b104921ff5221a67f99cc.tar.xz
Add dynamic recaptcha configuration in the Docker image
Diffstat (limited to '')
-rw-r--r--contrib/docker/conf/homeserver.yaml7
1 files changed, 7 insertions, 0 deletions
diff --git a/contrib/docker/conf/homeserver.yaml b/contrib/docker/conf/homeserver.yaml
index 7450cc1228..6f1de24aad 100644
--- a/contrib/docker/conf/homeserver.yaml
+++ b/contrib/docker/conf/homeserver.yaml
@@ -112,10 +112,17 @@ max_spider_size: "10M"
 
 ## Captcha ##
 
+{% if SYNAPSE_RECAPTCHA_PUBLIC_KEY %}
+recaptcha_public_key: "{{ SYNAPSE_RECAPTCHA_PUBLIC_KEY }}"
+recaptcha_private_key: "{{ SYNAPSE_RECAPTCHA_PRIVATE_KEY }}"
+enable_registration_captcha: True
+recaptcha_siteverify_api: "https://www.google.com/recaptcha/api/siteverify"
+{% else %}
 recaptcha_public_key: "YOUR_PUBLIC_KEY"
 recaptcha_private_key: "YOUR_PRIVATE_KEY"
 enable_registration_captcha: False
 recaptcha_siteverify_api: "https://www.google.com/recaptcha/api/siteverify"
+{% endif %}
 
 ## Turn ##