mirror of
https://github.com/status-im/infra-role-alertmanager.git
synced 2025-02-16 14:26:56 +00:00
add oauth consul service with ssl-proxy-backend tag
Necessary to use our own SSL termination setup. https://github.com/status-im/infra-hq/issues/73 Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
fb101d4152
commit
53ae53b622
@ -9,11 +9,23 @@
|
||||
port: '{{ alertmanager_webui_port }}'
|
||||
address: '{{ ansible_local.wireguard.vpn_ip }}'
|
||||
checks:
|
||||
- id: alertmanager-status
|
||||
name: Alert Manager status
|
||||
type: http
|
||||
- id: '{{ alertmanager_service_name }}-health'
|
||||
name: 'Alert Manager Health'
|
||||
type: 'http'
|
||||
http: 'http://localhost:{{ alertmanager_webui_port }}/api/v1/receivers'
|
||||
|
||||
- name: '{{ alertmanager_service_name }}-oauth'
|
||||
tags: ['oauth-proxy', 'alertmanager', 'ssl-proxy-backend']
|
||||
port: '{{ alertmanager_oauth_cont_port }}'
|
||||
address: '{{ ansible_local.wireguard.vpn_ip }}'
|
||||
meta:
|
||||
proxy_fqdn: '{{ alertmanager_domain | mandatory }}'
|
||||
checks:
|
||||
- id: '{{ alertmanager_service_name }}-oauth-health'
|
||||
name: 'AlertManager OAuth Health'
|
||||
type: 'http'
|
||||
http: 'http://localhost:{{ alertmanager_oauth_cont_port }}/ping'
|
||||
|
||||
# We need to do this for discover step to work
|
||||
- name: Reload Consul right away
|
||||
systemd:
|
||||
|
@ -37,7 +37,7 @@ services:
|
||||
user: 'root'
|
||||
restart: 'always'
|
||||
ports:
|
||||
- '127.0.0.1:{{ alertmanager_oauth_cont_port }}:{{ alertmanager_oauth_cont_port }}' # Web UI
|
||||
- '0.0.0.0:{{ alertmanager_oauth_cont_port }}:{{ alertmanager_oauth_cont_port }}' # Web UI
|
||||
command: |
|
||||
--email-domain='*'
|
||||
--provider='github'
|
||||
|
Loading…
x
Reference in New Issue
Block a user