|
@@ -0,0 +1,35 @@
|
|
1
|
+# Upgrade docs
|
|
2
|
+
|
|
3
|
+## Moving from v1.105 to v1.126
|
|
4
|
+
|
|
5
|
+To migrate from v1.105 to v1.126 you need to follow these steps:
|
|
6
|
+
|
|
7
|
+1. Copy the latest content of the [docker-compose.yaml](../../docker-compose.yaml) file, all of it and override the file `/opt/matrix/docker-compose.yaml` in the server with the latest content.
|
|
8
|
+2. Modify the nginx config by removing the following lines from the `/etc/nginx/sites-enabled/default` config file (remove all of them):
|
|
9
|
+
|
|
10
|
+```
|
|
11
|
+ location ~ ^/(client/|_matrix/client/unstable/org.matrix.msc3575/sync) {
|
|
12
|
+ proxy_pass http://10.10.10.7:8008;
|
|
13
|
+ proxy_set_header X-Forwarded-For \$remote_addr;
|
|
14
|
+ proxy_set_header X-Forwarded-Proto \$scheme;
|
|
15
|
+ proxy_set_header Host \$host;
|
|
16
|
+ }
|
|
17
|
+```
|
|
18
|
+
|
|
19
|
+3. Edit the same file and look for the word `org.matrix.msc3575.proxy`. Change it for `m.identity_server`
|
|
20
|
+4. Add the following value to the file `/opt/matrix/config/synapse/homeserver.yaml` (Change the `DOMAIN` value accordingly!!):
|
|
21
|
+
|
|
22
|
+```yaml
|
|
23
|
+public_baseurl: "https://DOMAIN"
|
|
24
|
+```
|
|
25
|
+
|
|
26
|
+5. Now it's time to bunce it all, run the following as root:
|
|
27
|
+
|
|
28
|
+```
|
|
29
|
+# Restart nginx
|
|
30
|
+% nginx -s reload
|
|
31
|
+# Restart matrix
|
|
32
|
+% systemctl restart matrix.service
|
|
33
|
+```
|
|
34
|
+
|
|
35
|
+6. Give it a few minutes to come back up and you are ready to go :)
|