matrix-synapse/rootfs/etc/cont-init.d/synapse-keys
2018-05-23 18:04:35 +02:00

10 lines
405 B
Plaintext

#!/usr/bin/with-contenv sh
if [ ! -f /var/lib/matrix-synapse/signing/signing.key ]; then
s6-setuidgid matrix-synapse python -B -m synapse.app.homeserver -c /var/lib/matrix-synapse/server.yaml --generate-config -H $SERVER_NAME --report-stats=no
fi
if [ ! -f /var/lib/matrix-synapse/signing/dhparams.pem ]; then
openssl dhparam -out /var/lib/matrix-synapse/signing/dhparams.pem $DHPARAM_LENGTH
fi