Просмотр исходного кода

Merge pull request #283 from fnoah/master

Add variable to enable verbose logging for mxisd
pull/286/head
Slavi Pantaleev 6 лет назад
committed by GitHub
Родитель
Сommit
9f002d7ef2
Не найден GPG ключ соответствующий данной подписи Идентификатор GPG ключа: 4AEE18F83AFDEB23
4 измененных файлов: 20 добавлений и 0 удалений
  1. +8
    -0
      docs/configuring-playbook-mxisd.md
  2. +4
    -0
      docs/maintenance-and-troubleshooting.md
  3. +5
    -0
      roles/matrix-mxisd/defaults/main.yml
  4. +3
    -0
      roles/matrix-mxisd/templates/systemd/matrix-mxisd.service.j2

+ 8
- 0
docs/configuring-playbook-mxisd.md Просмотреть файл

@@ -54,3 +54,11 @@ To learn more about how to do this, refer to the information about `matrix_mxisd
## Troubleshooting

If email address validation emails sent by mxisd are not reaching you, you should look into [Adjusting email-sending settings](configuring-playbook-email.md).

If you'd like additional logging information, temporarily enable verbose logging for mxisd.

Example configuration (`inventory/host_vars/matrix.DOMAIN/vars.yml`):

```yaml
matrix_mxisd_verbose_logging: true
```

+ 4
- 0
docs/maintenance-and-troubleshooting.md Просмотреть файл

@@ -37,3 +37,7 @@ Re-run the playbook after making these configuration changes.
## Postgres

See the dedicated [PostgreSQL Maintenance](maintenance-postgres.md) documentation page.

## Mxisd

See the dedicated [Adjusting mxisd Identity Server configuration](configuring-playbook-mxisd.md) documentation page.

+ 5
- 0
roles/matrix-mxisd/defaults/main.yml Просмотреть файл

@@ -68,6 +68,11 @@ matrix_mxisd_threepid_medium_email_custom_matrixid_template: ""
# Controls whether the self-check feature should validate SSL certificates.
matrix_mxisd_self_check_validate_certificates: true

# Controls mxisd logging verbosity for troubleshooting.
#
# According to: https://github.com/kamax-matrix/mxisd/blob/master/docs/troubleshooting.md#increase-verbosity
matrix_mxisd_verbose_logging: false

# Default mxisd configuration template which covers the generic use case.
# You can customize it by controlling the various variables inside it.
#


+ 3
- 0
roles/matrix-mxisd/templates/systemd/matrix-mxisd.service.j2 Просмотреть файл

@@ -26,6 +26,9 @@ ExecStart=/usr/bin/docker run --rm --name matrix-mxisd \
{% if matrix_mxisd_container_http_host_bind_port %}
-p {{ matrix_mxisd_container_http_host_bind_port }}:8090 \
{% endif %}
{% if matrix_mxisd_verbose_logging %}
-e MXISD_LOG_LEVEL=debug \
{% endif %}
-v {{ matrix_mxisd_config_path }}:/etc/mxisd:ro \
-v {{ matrix_mxisd_data_path }}:/var/mxisd:rw \
{% for arg in matrix_mxisd_container_extra_arguments %}


Загрузка…
Отмена
Сохранить