mirror of
https://github.com/status-im/infra-role-matterbridge.git
synced 2025-02-20 18:48:08 +00:00
consul: remove separate API service definition
Used to be necessary for `chat2bridge` which is gone now. Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
471d5f68c6
commit
e1a1908898
@ -16,7 +16,7 @@ matterbridge_nick: bridge
|
|||||||
matterbridge_ens_name: bridge.stateofus.eth
|
matterbridge_ens_name: bridge.stateofus.eth
|
||||||
|
|
||||||
# configuration for API
|
# configuration for API
|
||||||
matterbridge_api_enabled: false
|
matterbridge_api_enabled: true
|
||||||
matterbridge_api_port: 4242
|
matterbridge_api_port: 4242
|
||||||
|
|
||||||
# configuration for gateways
|
# configuration for gateways
|
||||||
|
@ -4,24 +4,11 @@
|
|||||||
vars:
|
vars:
|
||||||
consul_config_name: '{{ matterbridge_service_name }}'
|
consul_config_name: '{{ matterbridge_service_name }}'
|
||||||
consul_services:
|
consul_services:
|
||||||
- name: '{{ matterbridge_service_name }}'
|
- id: '{{ matterbridge_service_name }}'
|
||||||
|
name: '{{ matterbridge_service_name }}'
|
||||||
tags: ['matterbridge', 'bridge']
|
tags: ['matterbridge', 'bridge']
|
||||||
checks:
|
checks:
|
||||||
- id: '{{ matterbridge_service_name }}-health'
|
- id: '{{ matterbridge_service_name }}-health'
|
||||||
name: 'MatterBridge health'
|
|
||||||
type: 'script'
|
|
||||||
script: '/usr/bin/pgrep -xl matterbridge'
|
|
||||||
|
|
||||||
- name: Create Consul service definition for API
|
|
||||||
include_role: name=infra-role-consul-service
|
|
||||||
when: '{{ matterbridge_api_enabled }}'
|
|
||||||
vars:
|
|
||||||
consul_config_name: '{{ matterbridge_service_name }}-api'
|
|
||||||
consul_services:
|
|
||||||
- name: '{{ matterbridge_service_name }}-api'
|
|
||||||
tags: ['matterbridge', 'bridge']
|
|
||||||
checks:
|
|
||||||
- id: '{{ matterbridge_service_name }}-api-health'
|
|
||||||
name: 'MatterBridge API health'
|
name: 'MatterBridge API health'
|
||||||
type: 'http'
|
type: 'tcp'
|
||||||
http: 'http://localhost:{{ matterbridge_api_port }}/api/health'
|
tcp: '0.0.0.0:{{ matterbridge_api_port }}'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user