Explorar el Código

Adding Upgrade docs

master
Gattes hace 1 mes
padre
commit
d7c378ba90
Se han modificado 3 ficheros con 40 adiciones y 10 borrados
  1. 4
    0
      README.md
  2. 36
    0
      docs/upgrading/README.md
  3. 0
    10
      install.sh

+ 4
- 0
README.md Ver fichero

@@ -70,3 +70,7 @@ WARNING: Will remove everything now. Please confirm: (Y/N)
70 70
 ```
71 71
 
72 72
 Select the option `Y` (yes) and it'll be done
73
+
74
+## Upgrading
75
+
76
+See the [upgrade docs](./docs/upgrading/README.md)

+ 36
- 0
docs/upgrading/README.md Ver fichero

@@ -0,0 +1,36 @@
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
+- 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
+- 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
+- Edit the same file and look for the word `org.matrix.msc3575.proxy`. Change it for `m.identity_server`
20
+- Add the following values to the file `/opt/matrix/config/synapse/homeserver.yaml` (Change the `DOMAIN` value accordingly!!):
21
+
22
+```yaml
23
+enable_authenticated_media: False
24
+public_baseurl: "https://DOMAIN"
25
+```
26
+
27
+- Now it's time to bunce it all, run the following as root:
28
+
29
+```
30
+# Restart nginx
31
+% nginx -s reload
32
+# Restart matrix
33
+% systemctl restart matrix.service
34
+```
35
+
36
+- Give it a few minutes to come back up and you are ready to go :)

+ 0
- 10
install.sh Ver fichero

@@ -173,16 +173,6 @@ server {
173 173
         proxy_http_version 1.1;
174 174
     }
175 175
 
176
-    # Proxy for Synapse Admin Panel
177
-    location /_synapse/admin {
178
-        proxy_pass http://10.10.10.4:8008;
179
-        proxy_set_header X-Forwarded-For \$remote_addr;
180
-        proxy_set_header X-Forwarded-Proto \$scheme;
181
-        proxy_set_header Host \$host;
182
-        client_max_body_size 50M;
183
-        proxy_http_version 1.1;
184
-    }
185
-
186 176
     # Sydent identity server
187 177
     location ~ ^(/_matrix/identity) {
188 178
         proxy_pass http://10.10.10.5:8090;

Loading…
Cancelar
Guardar