Editing Matrix/Synapse
From Bibliotheca Anonoma
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
https://www.upcloud.com/support/install-matrix-synapse/ | https://www.upcloud.com/support/install-matrix-synapse/ | ||
<pre> | <pre> | ||
Line 38: | Line 11: | ||
# copy over the certificate for matrix to the pki directory with correct permissions | # copy over the certificate for matrix to the pki directory with correct permissions | ||
cat $RENEWED_LINEAGE/privkey.pem > /etc/pki/synapse/matrix.bibanon.org.key | cat $RENEWED_LINEAGE/privkey.pem > /etc/pki/synapse/matrix.bibanon.org.key | ||
cat $RENEWED_LINEAGE/ | cat $RENEWED_LINEAGE/cert.pem > /etc/pki/synapse/matrix.bibanon.org.crt | ||
chown synapse:synapse /etc/pki/synapse/matrix.bibanon.org.key | chown synapse:synapse /etc/pki/synapse/matrix.bibanon.org.key | ||
chown synapse:synapse /etc/pki/synapse/matrix.bibanon.org.crt | chown synapse:synapse /etc/pki/synapse/matrix.bibanon.org.crt | ||
chmod 600 /etc/pki/synapse/matrix.bibanon.org.key | chmod 600 /etc/pki/synapse/matrix.bibanon.org.key | ||
chmod 600 /etc/pki/synapse/matrix.bibanon.org.crt | chmod 600 /etc/pki/synapse/matrix.bibanon.org.crt | ||
# systemctl restart synapse | |||
echo "synapse matrix server.pem updated. synapse may need to be restarted." | echo "synapse matrix server.pem updated. synapse may need to be restarted." | ||
fi | fi | ||
</pre> | </pre> | ||
add it to /etc/sysconfig/certbot , enable certbot-renew service | add it to /etc/sysconfig/certbot , enable certbot-renew service |