-
Notifications
You must be signed in to change notification settings - Fork 0
/
envoy2.json
77 lines (77 loc) · 1.81 KB
/
envoy2.json
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
{
"listeners": [
{
"address": "tcp://127.0.0.1:9002",
"filters": [
{
"type": "read",
"name": "http_connection_manager",
"config": {
"codec_type": "auto",
"add_user_agent": true,
"idle_timeout_s": 840,
"access_log": [
{
"path": "/var/log/envoy/egress_http-socketio2.log"
}
],
"stat_prefix": "egress_http",
"use_remote_address": true,
"route_config": {
"virtual_hosts": [
{
"name": "socketio2",
"domains": [
"*"
],
"routes": [
{
"prefix": "/",
"cluster": "socketio2",
"use_websocket": true,
"hash_policy": {
"header_name": "referrer"
}
}
]
}
]
},
"filters": [
{
"type": "decoder",
"name": "router",
"config": {}
}
]
}
}
]
}
],
"admin": {
"access_log_path": "/var/log/envoy/socketio2-admin_access.log",
"address": "tcp://0.0.0.0:9902"
},
"cluster_manager": {
"clusters": [
{
"name": "socketio2",
"type": "static",
"lb_type": "ring_hash",
"connect_timeout_ms": 250,
"hosts": [
{
"url": "tcp://127.0.0.1:8002"
},
{
"url": "tcp://127.0.0.1:8003"
},
{
"url": "tcp://127.0.0.1:8004"
}
]
}
]
}
}