Kaynağa Gözat

matrix server names

Bob Mottram 8 yıl önce
ebeveyn
işleme
8b78504ac8
1 değiştirilmiş dosya ile 3 ekleme ve 1 silme
  1. 3
    1
      src/freedombone-app-matrix

+ 3
- 1
src/freedombone-app-matrix Dosyayı Görüntüle

@@ -235,6 +235,8 @@ function matrix_configure_homeserver_yaml {
235 235
     sed -i "s|log_file:.*|log_file: \"/dev/null\"|g" "${filepath}"
236 236
     sed -i '0,/bind_address:.*/s//bind_address: 127.0.0.1/' "${filepath}"
237 237
     sed -i '0,/x_forwarded:.*/s//x_forwarded: true/' "${filepath}"
238
+    sed -i "s|server_name:.*|server_name: \"${DEFAULT_DOMAIN_NAME}/matrix\"|g" "${filepath}"
239
+    sed -i "/trusted_third_party_id_servers:/a     - ${DEFAULT_DOMAIN_NAME}/matrixid" "${filepath}"
238 240
 }
239 241
 
240 242
 function matrix_configure_identityserver {
@@ -245,7 +247,7 @@ function matrix_configure_identityserver {
245 247
     sed -i "s|Sydent Validation|Freedombone Matrix Account Validation|g" ${filepath}
246 248
     sed -i "s|pidfile.path.*|pidfile.path = /etc/sydent/sydent.pid|g" ${filepath}
247 249
     sed -i "s|log.path.*|log.path = /dev/null|g" ${filepath}
248
-    sed -i "s|server.name.*|server.name = ${DEFAULT_DOMAIN_NAME}|g" ${filepath}
250
+    sed -i "s|server.name.*|server.name = ${DEFAULT_DOMAIN_NAME}/matrixid|g" ${filepath}
249 251
 }
250 252
 
251 253
 function matrix_diff {