Skip to content
Browse files

Net/Matrix: Clarify upgrade instructions

  • Loading branch information...
baltpeter committed Oct 14, 2019
1 parent baa8c07 commit 0f31bce934057bb3fdfac21afe5c5086eb1363dd
Showing with 28 additions and 5 deletions.
  1. +28 −5 content/network/vms/
@@ -24,12 +24,9 @@ sudo systemctl enable matrix-synapse.service
# Create the following DNS record: ` 3600 IN SRV 10 5 443`
# Copy the value generated by:
cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1
# Then, in:
sudo nano /etc/matrix-synapse/homeserver.yaml
# Set `enable_registration: false` and `registration_shared_secret` to the generated value from before.
# Set `enable_registration: false`.
sudo systemctl restart matrix-synapse.service
@@ -148,7 +145,33 @@ server {
Check if there are [update notes]( for the new version.
Updates are done using APT: `apt update && apt upgrade`

To check the server version: `curl -kv http://localhost:8008/_matrix/client/versions 2>&1 | grep "Server:"`
### Config merge

When the config changes, APT will usually ask you what to do. First, choose `D` to see if the changes are signficant. If so, make note of the config options we need to keep. These are usually:

name: psycopg2
user: matrix
password: pw
database: synapse
cp_min: 5
cp_max: 10
enable_registration: false
suppress_key_server_warning: true

Then, choose `Z` to start a shell, run `nano /etc/matrix-synapse/homeserver.yaml.dpkg-new` to edit the (new) config and reenter the old values.

Once you are done, run `exit` and finally choose `Y` to accept the changes.

To check the server version: `curl http://localhost:8008/_synapse/admin/v1/server_version`

## References

0 comments on commit 0f31bce

Please sign in to comment.
You can’t perform that action at this time.