-
Notifications
You must be signed in to change notification settings - Fork 3
/
config.example.yml
42 lines (34 loc) · 1.16 KB
/
config.example.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Connection details for your monitor service.
Monitor:
Host: localhost
Port: 5432
User: autoctl_node
Password: 123456
DBName: pg_auto_failover
# sslmode for connecting to the monitor service (Defaults to 'disable')
# Reference: https://www.postgresql.org/docs/current/libpq-ssl.html#LIBPQ-SSL-SSLMODE-STATEMENTS
SSLMode: disable
# A list of coordinator nodes that you want to be monitored for changes in their worker nodes.
Coordinators:
- DBName: postgres
Password: 654321
Username: postgres
# Formation that the node can be found with in monitor.
Formation: default
# sslmode for connecting to the coordinator nodes (Defaults to 'disable')
# Reference: https://www.postgresql.org/docs/current/libpq-ssl.html#LIBPQ-SSL-SSLMODE-STATEMENTS
SSLMode: disable
# Service settings
Settings:
# Check interval for changes (in ms).
CheckInterval: 2000
Debug: false
# REST API settings.
API:
# Enables the REST API.
Enabled: true
# The port that the API should be run at.
Port: 3002
# The secret key that will be used to authorize requests.
# All requests require this string in their header as SECRET.
Secret: SECRET_STRING