-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconsul.hcl
59 lines (50 loc) · 986 Bytes
/
consul.hcl
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
node_name = "consul-singleton"
server = true
bind_addr = "0.0.0.0"
client_addr = "0.0.0.0"
ports {
http = 8500
https = 8501
grpc = -1
}
acl {
enabled = true
default_policy = "allow"
enable_token_persistence = true
}
limits {
http_max_conns_per_client = 2000
}
data_dir = "/opt/consul/data"
tls {
defaults {
ca_file = "/consul/config/itmo-dating-backend-ca.crt"
cert_file = "/consul/config/itmo-dating-backend.crt"
key_file = "/consul/config/itmo-dating-backend.key"
tls_min_version = "TLSv1_3"
verify_incoming = false
verify_outgoing = false
verify_server_hostname = false
}
}
ui_config {
enabled = true
}
services = [
{
name = "database"
address = "database"
port = 5432
check = {
id = "database-check"
name = "PostgreSQL Health Check"
tcp = "database:5432"
interval = "10s"
timeout = "1s"
}
},
]
telemetry {
disable_hostname = true
prometheus_retention_time = "480h"
}