Browse Source

Add some relay-related variables to mautrix-slack role

pull/4402/head
Slavi Pantaleev 8 months ago
parent
commit
25498851a0
2 changed files with 12 additions and 3 deletions
  1. +9
    -0
      roles/custom/matrix-bridge-mautrix-slack/defaults/main.yml
  2. +3
    -3
      roles/custom/matrix-bridge-mautrix-slack/templates/config.yaml.j2

+ 9
- 0
roles/custom/matrix-bridge-mautrix-slack/defaults/main.yml View File

@@ -168,3 +168,12 @@ matrix_mautrix_slack_bridge_encryption_pickle_key: maunium.net/go/mautrix-whatsa

matrix_mautrix_slack_provisioning_shared_secret: ''
matrix_mautrix_slack_public_media_signing_key: ''

# Controls whether relay mode is enabled
matrix_mautrix_slack_bridge_relay_enabled: false

# Controls whether only admins can set themselves as relay users
matrix_mautrix_slack_bridge_relay_admin_only: true

# List of user login IDs which anyone can set as a relay, as long as the relay user is in the room
matrix_mautrix_slack_bridge_relay_default_relays: []

+ 3
- 3
roles/custom/matrix-bridge-mautrix-slack/templates/config.yaml.j2 View File

@@ -113,12 +113,12 @@ bridge:
relay:
# Whether relay mode should be allowed. If allowed, the set-relay command can be used to turn any
# authenticated user into a relaybot for that chat.
enabled: false
enabled: {{ matrix_mautrix_slack_bridge_relay_enabled | to_json }}
# Should only admins be allowed to set themselves as relay users?
# If true, non-admins can only set users listed in default_relays as relays in a room.
admin_only: true
admin_only: {{ matrix_mautrix_slack_bridge_relay_admin_only | to_json }}
# List of user login IDs which anyone can set as a relay, as long as the relay user is in the room.
default_relays: []
default_relays: {{ matrix_mautrix_slack_bridge_relay_default_relays | to_json }}
# The formats to use when sending messages via the relaybot.
# Available variables:
# .Sender.UserID - The Matrix user ID of the sender.


Loading…
Cancel
Save