浏览代码

Update docs/configuring-playbook-bridge-mautrix-bridges.md: add descriptions about configuring bridge permissions

Partially based on docs/configuring-playbook-bridge-mautrix-meta-instagram.md etc.

Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org>
pull/3913/head
Suguru Hirahara 1年前
父节点
当前提交
c8da6740dd
找不到此签名对应的密钥 GPG 密钥 ID: E4F9743DAB4B7B75
共有 1 个文件被更改,包括 7 次插入1 次删除
  1. +7
    -1
      docs/configuring-playbook-bridge-mautrix-bridges.md

+ 7
- 1
docs/configuring-playbook-bridge-mautrix-bridges.md 查看文件

@@ -19,7 +19,9 @@ There are some additional things you may wish to configure about the bridge befo


### Configure bridge permissions (optional) ### Configure bridge permissions (optional)


To **configure a user as an administrator for all bridges**, add the following configuration to your `inventory/host_vars/matrix.example.com/vars.yml` file:
By default any user on your homeserver will be able to use the mautrix bridges. To limit who can use them you would need to configure their permissions settings.

Different levels of permission can be granted to users. For example, to **configure a user as an administrator for all bridges**, add the following configuration to your `inventory/host_vars/matrix.example.com/vars.yml` file:


```yaml ```yaml
matrix_admin: "@alice:{{ matrix_domain }}" matrix_admin: "@alice:{{ matrix_domain }}"
@@ -34,6 +36,10 @@ matrix_mautrix_SERVICENAME_configuration_extension_yaml: |
'@alice:{{ matrix_domain }}': admin '@alice:{{ matrix_domain }}': admin
``` ```


This will add the admin permission to the specific user, while keeping the default permissions.

You could also redefine the default permissions settings completely, rather than adding extra permissions. You may wish to look at `roles/custom/matrix-bridge-mautrix-SERVICENAME/templates/config.yaml.j2` to find information on the permission settings and other options you would like to configure.

### Enable encryption (optional) ### Enable encryption (optional)


[Encryption (End-to-Bridge Encryption, E2BE) support](https://docs.mau.fi/bridges/general/end-to-bridge-encryption.html) is off by default. If you would like to enable encryption, add the following configuration to your `inventory/host_vars/matrix.example.com/vars.yml` file: [Encryption (End-to-Bridge Encryption, E2BE) support](https://docs.mau.fi/bridges/general/end-to-bridge-encryption.html) is off by default. If you would like to enable encryption, add the following configuration to your `inventory/host_vars/matrix.example.com/vars.yml` file:


正在加载...
取消
保存