Przeglądaj źródła

hookshot: Allow the localpart of the hookshot-bot to be defined (#3853)

* set localpart of hookshot bot in main.yml

* set sender_localpart in registration.yml.j2 template to variable

* prettier location for bot localpart in main.yml

* Update main.yml

* Update registration.yml.j2

---------

Co-authored-by: Slavi Pantaleev <slavi@devture.com>
pull/3856/head
janonym1 1 rok temu
committed by GitHub
rodzic
commit
d1fa7378f7
Nie znaleziono w bazie danych klucza dla tego podpisu ID klucza GPG: B5690EEEBB952194
2 zmienionych plików z 4 dodań i 1 usunięć
  1. +3
    -0
      roles/custom/matrix-bridge-hookshot/defaults/main.yml
  2. +1
    -1
      roles/custom/matrix-bridge-hookshot/templates/registration.yml.j2

+ 3
- 0
roles/custom/matrix-bridge-hookshot/defaults/main.yml Wyświetl plik

@@ -30,6 +30,9 @@ matrix_hookshot_docker_src_files_path: "{{ matrix_hookshot_base_path }}/docker-s
matrix_hookshot_homeserver_address: "" matrix_hookshot_homeserver_address: ""
matrix_hookshot_container_url: 'matrix-hookshot' matrix_hookshot_container_url: 'matrix-hookshot'


# Sets the localpart of the Matrix ID for the hookshot bot
matrix_hookshot_bot_localpart: "hookshot"

matrix_hookshot_public_scheme: https matrix_hookshot_public_scheme: https
matrix_hookshot_public_hostname: "{{ matrix_server_fqn_matrix }}" matrix_hookshot_public_hostname: "{{ matrix_server_fqn_matrix }}"
matrix_hookshot_public_endpoint: /hookshot matrix_hookshot_public_endpoint: /hookshot


+ 1
- 1
roles/custom/matrix-bridge-hookshot/templates/registration.yml.j2 Wyświetl plik

@@ -25,7 +25,7 @@ namespaces:
- regex: "#github_.+:{{ matrix_domain }}" - regex: "#github_.+:{{ matrix_domain }}"
exclusive: true exclusive: true


sender_localpart: hookshot
sender_localpart: {{ matrix_hookshot_bot_localpart | to_json }}
url: "http://{{ matrix_hookshot_container_url }}:{{ matrix_hookshot_appservice_port }}" # This should match the bridge.port in your config file url: "http://{{ matrix_hookshot_container_url }}:{{ matrix_hookshot_appservice_port }}" # This should match the bridge.port in your config file
rate_limited: false rate_limited: false




Ładowanie…
Anuluj
Zapisz