Browse Source

Add variable for appservice username template

pull/5289/head
jasonlaguidice 1 week ago
parent
commit
8561ce358d
2 changed files with 5 additions and 1 deletions
  1. +4
    -0
      roles/custom/matrix-bridge-rustpush/defaults/main.yml
  2. +1
    -1
      roles/custom/matrix-bridge-rustpush/templates/config.yaml.j2

+ 4
- 0
roles/custom/matrix-bridge-rustpush/defaults/main.yml View File

@@ -151,6 +151,10 @@ matrix_rustpush_bridge_appservice_bot_username: imessagebot
matrix_rustpush_bridge_appservice_bot_displayname: iMessage bridge bot matrix_rustpush_bridge_appservice_bot_displayname: iMessage bridge bot
matrix_rustpush_bridge_appservice_bot_avatar: '' matrix_rustpush_bridge_appservice_bot_avatar: ''


# Localpart template for MXIDs of remote (iMessage) users.
# The `{{.}}` placeholder expands to the iMessage handle (phone/email).
matrix_rustpush_bridge_appservice_username_template: "{% raw %}imessage_{{.}}{% endraw %}"

# Backfill is disabled by default because Linux Docker cannot access chat.db. # Backfill is disabled by default because Linux Docker cannot access chat.db.
# On macOS with Full Disk Access, this can be set to true. # On macOS with Full Disk Access, this can be set to true.
matrix_rustpush_bridge_backfill_enabled: false matrix_rustpush_bridge_backfill_enabled: false


+ 1
- 1
roles/custom/matrix-bridge-rustpush/templates/config.yaml.j2 View File

@@ -126,7 +126,7 @@ appservice:
hs_token: {{ matrix_rustpush_bridge_homeserver_token | to_json }} hs_token: {{ matrix_rustpush_bridge_homeserver_token | to_json }}


# Localpart template of MXIDs for remote users. # Localpart template of MXIDs for remote users.
username_template: "{% raw %}imessage_{{.}}{% endraw %}"
username_template: {{ matrix_rustpush_bridge_appservice_username_template | to_json }}


# Config options that affect the Matrix connector of the bridge. # Config options that affect the Matrix connector of the bridge.
matrix: matrix:


Loading…
Cancel
Save