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

Add support for disabling presence on matrix-bridge-mx-puppet-discord

pull/3093/head
Slavi Pantaleev 2 лет назад
Родитель
Сommit
82de4581e3
3 измененных файлов: 7 добавлений и 2 удалений
  1. +2
    -0
      group_vars/matrix_servers
  2. +3
    -0
      roles/custom/matrix-bridge-mx-puppet-discord/defaults/main.yml
  3. +2
    -2
      roles/custom/matrix-bridge-mx-puppet-discord/templates/config.yaml.j2

+ 2
- 0
group_vars/matrix_servers Просмотреть файл

@@ -1883,6 +1883,8 @@ matrix_mx_puppet_discord_homeserver_token: "{{ '%s' | format(matrix_homeserver_g

matrix_mx_puppet_discord_login_shared_secret: "{{ matrix_synapse_ext_password_provider_shared_secret_auth_shared_secret if matrix_synapse_ext_password_provider_shared_secret_auth_enabled else '' }}"

matrix_mx_puppet_discord_presence_enabled: "{{ matrix_homeserver_implementation != 'synapse' or matrix_synapse_presence_enabled }}"

# Postgres is the default, except if not using internal Postgres server
matrix_mx_puppet_discord_database_engine: "{{ 'postgres' if devture_postgres_enabled else 'sqlite' }}"
matrix_mx_puppet_discord_database_hostname: "{{ devture_postgres_connection_hostname if devture_postgres_enabled else '' }}"


+ 3
- 0
roles/custom/matrix-bridge-mx-puppet-discord/defaults/main.yml Просмотреть файл

@@ -68,6 +68,9 @@ matrix_mx_puppet_discord_homeserver_token: ''
# Can be set to enable automatic double-puppeting via Shared Secret Auth (https://github.com/devture/matrix-synapse-shared-secret-auth).
matrix_mx_puppet_discord_login_shared_secret: ''

matrix_mx_puppet_discord_presence_enabled: true
matrix_mx_puppet_discord_presence_interval: 5000

# Database configuration
matrix_mx_puppet_discord_database_engine: 'sqlite'



+ 2
- 2
roles/custom/matrix-bridge-mx-puppet-discord/templates/config.yaml.j2 Просмотреть файл

@@ -23,9 +23,9 @@ bridge:

presence:
# Bridge Discord online/offline status
enabled: true
enabled: {{ matrix_mx_puppet_discord_presence_enabled | to_json }}
# How often to send status to the homeserver in milliseconds
interval: 5000
interval: {{ matrix_mx_puppet_discord_presence_interval | to_json }}

provisioning:
# Regex of Matrix IDs allowed to use the puppet bridge


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