瀏覽代碼

Disable new registrations from clients

Bob Mottram 8 年之前
父節點
當前提交
24e906dab5
共有 1 個檔案被更改,包括 1 行新增0 行删除
  1. 1
    0
      src/freedombone-app-matrix

+ 1
- 0
src/freedombone-app-matrix 查看文件

@@ -238,6 +238,7 @@ function matrix_configure_homeserver_yaml {
238 238
     sed -i "s|server_name:.*|server_name: \"${DEFAULT_DOMAIN_NAME}\"|g" "${filepath}"
239 239
     sed -i "/trusted_third_party_id_servers:/a     - ${DEFAULT_DOMAIN_NAME}" "${filepath}"
240 240
     sed -i "s|- ${DEFAULT_DOMAIN_NAME}|    - ${DEFAULT_DOMAIN_NAME}|g" "${filepath}"
241
+    sed -i "s|enable_registration:.*|enable_registration: False|g" "${filepath}"
241 242
 }
242 243
 
243 244
 function matrix_configure_identityserver {