Преглед изворни кода

Merge pull request #4005 from luixxiul/fix

Update files for matrix-bridge-wechat
pull/4007/head
Slavi Pantaleev пре 1 година
committed by GitHub
родитељ
комит
4f00a1f8f0
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
2 измењених фајлова са 23 додато и 1 уклоњено
  1. +22
    -0
      docs/configuring-playbook-bridge-wechat.md
  2. +1
    -1
      roles/custom/matrix-bridge-wechat/defaults/main.yml

+ 22
- 0
docs/configuring-playbook-bridge-wechat.md Прегледај датотеку

@@ -12,6 +12,15 @@ To enable the bridge, add the following configuration to your `inventory/host_va
matrix_wechat_enabled: true
```

### Extending the configuration

There are some additional things you may wish to configure about the bridge.

Take a look at:

- `roles/custom/matrix-bridge-wechat/defaults/main.yml` for some variables that you can customize via your `vars.yml` file
- `roles/custom/matrix-bridge-wechat/templates/config.yaml.j2` for the bridge's default configuration. You can override settings (even those that don't have dedicated playbook variables) using the `matrix_wechat_configuration_extension_yaml` variable

## Installing

After configuring the playbook, run it with [playbook tags](playbook-tags.md) as below:
@@ -34,3 +43,16 @@ ansible-playbook -i inventory/hosts setup.yml --tags=setup-all,ensure-matrix-use
To use the bridge, you need to start a chat with `@wechatbot:example.com` (where `example.com` is your base domain, not the `matrix.` domain).

Send `help` to the bot to see the available commands.

## Troubleshooting

As with all other services, you can find the logs in [systemd-journald](https://www.freedesktop.org/software/systemd/man/systemd-journald.service.html) by logging in to the server with SSH and running `journalctl -fu matrix-bridge-wechat`.

### Increase logging verbosity

The default logging level for this component is `warn`. If you want to increase the verbosity, add the following configuration to your `vars.yml` file and re-run the playbook:

```yaml
# Valid values: fatal, error, warn, info, debug
matrix_wechat_log_level: 'debug'
```

+ 1
- 1
roles/custom/matrix-bridge-wechat/defaults/main.yml Прегледај датотеку

@@ -95,7 +95,7 @@ matrix_wechat_encryption_allow: "{{ matrix_bridges_encryption_enabled }}"
matrix_wechat_encryption_default: "{{ matrix_wechat_encryption_allow }}"

# Minimum severity of journal log messages.
# Options: debug, info, warn, error, fatal
# Valid values: fatal, error, warn, info, debug
matrix_wechat_log_level: 'warn'

matrix_wechat_permissions: |


Loading…
Откажи
Сачувај