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 2: Line 2:


Create synapse user and /home/synapse, then follow pip virtualenv steps
Create synapse user and /home/synapse, then follow pip virtualenv steps
<pre>
# This assumes that Synapse has been installed under the user synapse
# e.g. https://www.upcloud.com/support/install-matrix-synapse/
[Unit]
Description=Synapse Matrix homeserver
[Service]
Type=simple
User=synapse
Group=synapse
WorkingDirectory=/home/synapse/.synapse
ExecStart=/home/synapse/.synapse/bin/synctl start
ExecStop=/home/synapse/.synapse/bin/synctl stop
PIDFile=/home/synapse/.synapse/homeserver.pid
#ExecStart=/usr/bin/python2.7 -m synapse.app.homeserver --config-path=/home/synapse/.synapse/homeserver.yaml --log-config=/etc/synapse/log_config.yaml
[Install]
WantedBy=multi-user.target
</pre>
== Automated LetsEncrypt ==


create /etc/pki/synapse with permissions to synapse user chmod 600
create /etc/pki/synapse with permissions to synapse user chmod 600
Line 43: Line 20:
   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
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
Line 53: Line 30:


add it to /etc/sysconfig/certbot , enable certbot-renew service
add it to /etc/sysconfig/certbot , enable certbot-renew service
<pre>
# This assumes that Synapse has been installed under the user synapse
# e.g. https://www.upcloud.com/support/install-matrix-synapse/
[Unit]
Description=Synapse Matrix homeserver
[Service]
Type=simple
User=synapse
Group=synapse
WorkingDirectory=/home/synapse/.synapse
ExecStart=/home/synapse/.synapse/bin/synctl start
ExecStop=/home/synapse/.synapse/bin/synctl stop
PIDFile=/home/synapse/.synapse/homeserver.pid
#ExecStart=/usr/bin/python2.7 -m synapse.app.homeserver --config-path=/home/synapse/.synapse/homeserver.yaml --log-config=/etc/synapse/log_config.yaml
[Install]
WantedBy=multi-user.target
</pre>
Please note that all contributions to Bibliotheca Anonoma are considered to be released under the Creative Commons Attribution-ShareAlike (see Bibliotheca Anonoma:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!
Cancel Editing help (opens in new window)