Quellcode durchsuchen

Adding Hydrogen-web frontend

master
Miguel Gagliardo vor 5 Monaten
Ursprung
Commit
6faa19863b
3 geänderte Dateien mit 40 neuen und 1 gelöschten Zeilen
  1. 3
    1
      README.md
  2. 26
    0
      docker-compose.yaml
  3. 11
    0
      install.sh

+ 3
- 1
README.md Datei anzeigen

@@ -14,7 +14,7 @@ The following components are included in the installer:
14 14
 
15 15
 1. Docker
16 16
 2. Matrix backend (synapse)
17
-3. Matrix frontend (element)
17
+3. Matrix frontend (element & hydrogen-web)
18 18
 4. Matrix DB (PostgreSQL)
19 19
 5. Matrix Admin Panel: `https://<URL>/admin`
20 20
 6. Coturn server (required for voice chat/videocalls)
@@ -36,6 +36,8 @@ chmod +x install.sh
36 36
 
37 37
 4. Wait for the installer to finish. Enjoy the matrix server :)
38 38
 
39
+**Note**: `https://DOMAIN` will take you to the default frontend (Element) whilst `https://DOMAIN/hydrogen/` (note the last forward slash) will take you to the Hydrgeon-Web frontend
40
+
39 41
 
40 42
 ## How to use the server
41 43
 

+ 26
- 0
docker-compose.yaml Datei anzeigen

@@ -73,6 +73,32 @@ services:
73 73
     depends_on:
74 74
       - synapse
75 75
 
76
+  hydrogen-web:
77
+    image: ghcr.io/element-hq/hydrogen-web:latest
78
+    restart: unless-stopped
79
+    environment:
80
+      - |
81
+        CONFIG_OVERRIDE=
82
+        {
83
+            "push": {
84
+                "appId": "io.element.hydrogen.web",
85
+                "gatewayUrl": "https://matrix.org",
86
+                "applicationServerKey": "BC-gpSdVHEXhvHSHS0AzzWrQoukv2BE7KzpoPO_FfPacqOo3l1pdqz7rSgmB04pZCWaHPz7XRe6fjLaC-WPDopM"
87
+            },
88
+            "defaultHomeServer": "DOMAIN",
89
+            "bugReportEndpointUrl": "https://element.io/bugreports/submit",
90
+            "themeManifests": [
91
+                "assets/theme-element.json"
92
+            ],
93
+            "defaultTheme": {
94
+                "light": "element-light",
95
+                "dark": "element-dark"
96
+            }
97
+        }
98
+    networks:
99
+      matrix_server:
100
+        ipv4_address: 10.10.10.8
101
+
76 102
 networks:
77 103
   matrix_server:
78 104
     external: true

+ 11
- 0
install.sh Datei anzeigen

@@ -190,6 +190,17 @@ server {
190 190
         proxy_http_version 1.1;
191 191
     }
192 192
 
193
+    # Hydrogen web
194
+    location ~ ^/(hydrogen|assets) {
195
+        rewrite /hydrogen/(.*) /\$1  break;
196
+        proxy_pass http://10.10.10.8:8080;
197
+        proxy_set_header X-Forwarded-For \$remote_addr;
198
+        proxy_set_header X-Forwarded-Proto \$scheme;
199
+        proxy_set_header Host \$host;
200
+        client_max_body_size 50M;
201
+        proxy_http_version 1.1;
202
+    }
203
+
193 204
     # Element Frontend
194 205
     location / {
195 206
         # Element chat Container Network IP

Laden…
Abbrechen
Speichern