3a5f82267b
As described here ( https://github.com/matrix-org/synapse/issues/2438#issuecomment-327424711 ), using own SSL certificates for the federation port is more fragile, as renewing them could cause federation outages. The recommended setup is to use the self-signed certificates generated by Synapse. On the 443 port (matrix-nginx-proxy) side, we still use the Let's Encrypt certificates, which ensures API consumers work without having to trust "our own CA". Having done this, we also don't need to ever restart Synapse anymore, as no new SSL certificates need to be applied there. It's just matrix-nginx-proxy that needs to be restarted, and it doesn't even need a full restart as an "nginx reload" does the job of swithing to the new SSL certificates.
9 lines
377 B
Django/Jinja
9 lines
377 B
Django/Jinja
MAILTO="{{ matrix_ssl_support_email }}"
|
|
|
|
# This periodically reloads the matrix-nginx-proxy service
|
|
# to ensure it's using the latest SSL certificate
|
|
# in case it got renewed by the `matrix-ssl-certificate-renewal` cronjob
|
|
# (which happens once every ~2-3 months).
|
|
|
|
{{ matrix_nginx_proxy_reload_cron_time_definition }} root /usr/bin/systemctl reload matrix-nginx-proxy.service
|