mirror of
https://github.com/status-im/infra-role-alertmanager.git
synced 2025-02-19 15:54:33 +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 }}'
|
port: '{{ alertmanager_webui_port }}'
|
||||||
address: '{{ ansible_local.wireguard.vpn_ip }}'
|
address: '{{ ansible_local.wireguard.vpn_ip }}'
|
||||||
checks:
|
checks:
|
||||||
- id: alertmanager-status
|
- id: '{{ alertmanager_service_name }}-health'
|
||||||
name: Alert Manager status
|
name: 'Alert Manager Health'
|
||||||
type: http
|
type: 'http'
|
||||||
http: 'http://localhost:{{ alertmanager_webui_port }}/api/v1/receivers'
|
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
|
# We need to do this for discover step to work
|
||||||
- name: Reload Consul right away
|
- name: Reload Consul right away
|
||||||
systemd:
|
systemd:
|
||||||
|
@ -37,7 +37,7 @@ services:
|
|||||||
user: 'root'
|
user: 'root'
|
||||||
restart: 'always'
|
restart: 'always'
|
||||||
ports:
|
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: |
|
command: |
|
||||||
--email-domain='*'
|
--email-domain='*'
|
||||||
--provider='github'
|
--provider='github'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user