config: enable API by adding a dummy gateway

Otherwise MatterBridge never listens on the API port.

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2024-03-21 19:52:28 +01:00
parent 98a91cd311
commit c0f4a30e3c
No known key found for this signature in database
GPG Key ID: FE65CD384D5BF7B4
1 changed files with 9 additions and 0 deletions

View File

@ -23,7 +23,16 @@ api.api:
# These are auto generated by Ansible # # These are auto generated by Ansible #
####################################### #######################################
gateway: gateway:
{% if matterbridge_api_enabled %}
- name: "api"
enable: true
inout:
- account: "api.api"
channel: "api"
{% endif %}
{% for gtw in matterbridge_gateways %} {% for gtw in matterbridge_gateways %}
- name: "{{ gtw.status | default('bridge#'+(loop.index|string)) | mandatory }}" - name: "{{ gtw.status | default('bridge#'+(loop.index|string)) | mandatory }}"
enable: "true" enable: "true"