forked from airbnb/synapse
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathexample.synapse.conf.json
More file actions
60 lines (60 loc) · 1.46 KB
/
example.synapse.conf.json
File metadata and controls
60 lines (60 loc) · 1.46 KB
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
60
{
"services": {
"myservice": {
"discovery": {
"method": "ec2tag",
"tag_name": "servicename",
"tag_value": "true",
"check_interval": 120.0
},
"haproxy": {
"port": 50003,
"listen": [
"mode http"
],
"server_port_override": "50001",
"server_backup_port": "50002",
"server_options": "check"
}
}
},
"haproxy": {
"reload_command": "echo noop",
"config_file_path": "/etc/haproxy/haproxy.cfg",
"socket_file_path": "/var/haproxy/stats.sock",
"do_writes": true,
"do_reloads": true,
"do_socket": false,
"bind_address": "0.0.0.0",
"global": [
"daemon",
"user haproxy",
"group haproxy",
"chroot /var/lib/haproxy",
"maxconn 4096",
"log 127.0.0.1 local0",
"log 127.0.0.1 local1 notice"
],
"defaults": [
"log global",
"mode http",
"maxconn 2000",
"retries 3",
"timeout connect 5s",
"timeout client 1m",
"timeout server 1m",
"option redispatch",
"balance roundrobin",
"default-server inter 2s rise 3 fall 2",
"option dontlognull",
"option dontlog-normal"
],
"extra_sections": {
"listen stats :1937": [
"stats enable",
"stats uri /",
"stats realm Haproxy Statistics"
]
}
}
}