diff --git a/README.md b/README.md index fc7a7c4..348ff39 100644 --- a/README.md +++ b/README.md @@ -42,15 +42,8 @@ Database user. ## DB_PASSWORD Password for the database user. -## CERT_NAME -- default: fullchain.pem - -Name of the certificate file. - -## KEY_NAME -- default: privkey.pem - -Name of the key file. +## CERT_DOMAIN +Name of the certificate domain. ## MAX_UPLOAD_SIZE - default: 10M diff --git a/rootfs/etc/confd/templates/server.yaml.tmpl b/rootfs/etc/confd/templates/server.yaml.tmpl index 1f2ab5c..e98efda 100644 --- a/rootfs/etc/confd/templates/server.yaml.tmpl +++ b/rootfs/etc/confd/templates/server.yaml.tmpl @@ -1,5 +1,6 @@ -tls_certificate_path: "/etc/ssl/matrix-synapse/{{getenv "CERT_NAME" "fullchain.pem"}}" -tls_private_key_path: "/etc/ssl/matrix-synapse/{{getenv "KEY_NAME" "privkey.pem"}}" +tls_certificate_path: "/etc/ssl/matrix-synapse/{{getenv "CERT_DOMAIN"}}.crt" +tls_private_key_path: "/etc/ssl/matrix-synapse/{{getenv "CERT_DOMAIN"}}.key" + tls_dh_params_path: "/var/lib/matrix-synapse/signing/dhparams.pem" no_tls: False