summary refs log tree commit diff
diff options
context:
space:
mode:
authorJorik Schellekens <joriks@matrix.org>2019-08-21 11:03:56 +0100
committerJorik Schellekens <joriks@matrix.org>2019-08-28 15:59:54 +0100
commite48e9ba41bfa7d9de10687d93f03a2e37b365b4e (patch)
treeea0a03ff10a169f251c23d4cfbfb77942e26436f
parentFix config tls path bug (diff)
downloadsynapse-e48e9ba41bfa7d9de10687d93f03a2e37b365b4e.tar.xz
How was this even remotely working?
-rw-r--r--synapse_topology/webui/src/js/utils/yaml.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/synapse_topology/webui/src/js/utils/yaml.js b/synapse_topology/webui/src/js/utils/yaml.js
index 5d1a79ccd4..bb706c6533 100644
--- a/synapse_topology/webui/src/js/utils/yaml.js
+++ b/synapse_topology/webui/src/js/utils/yaml.js
@@ -72,14 +72,14 @@ const listeners = config => {
 
 const tlsPaths = config => {
 
-    if (config.reverseProxy == REVERSE_PROXY_TYPES.TLS) {
+    if (config.tls == TLS_TYPES.TLS) {
 
         return {
             tls_certificate_path: config.tlsCertPath,
             tls_private_key_path: config.tlsCertKeyPath,
         }
 
-    } else if (config.reverseProxy == REVERSE_PROXY_TYPES.ACME) {
+    } else if (config.tls == TLS_TYPES.ACME) {
 
         return {
             tls_certificate_path:
@@ -108,7 +108,7 @@ const acme = config => {
                 reprovision_threshold: 30,
                 domain: config.delegationServerName ?
                     config.delegationServerName :
-                    servername,
+                    config.servername,
                 account_key_file: config.configDir + "/data/acme_account.key",
             },
         }