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:
Jakub Sokołowski 2022-05-13 21:57:44 +02:00
parent fb101d4152
commit 53ae53b622
No known key found for this signature in database
GPG Key ID: 09AA5403E54D9931
2 changed files with 16 additions and 4 deletions

View File

@ -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:

View File

@ -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'