-
Notifications
You must be signed in to change notification settings - Fork 32
/
Copy pathcentrifugo-config.json
64 lines (64 loc) · 1.64 KB
/
centrifugo-config.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
{
"client": {
"token": {
"hmac_secret_key": "corsace"
},
"allowed_origins": [
"http://localhost:7000"
],
"proxy": {
"connect": {
"endpoint": "http://127.0.0.1:8080/api/centrifugo/connect",
"timeout": "5s",
"enabled": true,
"http_headers": [
"Origin",
"User-Agent",
"Cookie",
"Authorization",
"X-Request-Id"
]
}
}
},
"admin": {
"enabled": true,
"password": "corsace",
"secret": "secret"
},
"http_api": {
"key": "corsace"
},
"channel": {
"proxy": {
"subscribe": {
"endpoint": "http://127.0.0.1:8080/api/centrifugo/subscribe",
"timeout": "5s",
"http_headers": [
"Origin",
"User-Agent",
"Cookie",
"Authorization",
"X-Request-Id"
]
}
},
"namespaces": [
{
"name": "matchup",
"history_size": 300,
"history_ttl": "20s",
"allow_history_for_subscriber": true,
"subscribe_proxy_enabled": true
},
{
"name": "invitations",
"subscribe_proxy_enabled": true
},
{
"name": "teams",
"subscribe_proxy_enabled": true
}
]
}
}