forked from AcalaNetwork/subway
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.yml
53 lines (51 loc) · 1.37 KB
/
config.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
43
44
45
46
47
48
49
50
51
52
53
extensions:
client:
endpoints:
- ${RPC:-wss://rpc.hydradx.cloud}
event_bus:
substrate_api:
stale_timeout_seconds: 180
telemetry:
provider: none
cache:
default_ttl_seconds: ${CACHE_TTL_SECONDS:-60}
default_size: ${CACHE_SIZE:-50000}
merge_subscription:
keep_alive_seconds: ${MERGE_SUBSCRIPTION_KEEP_ALIVE_SECONDS:-60}
server:
port: 9944
listen_address: '0.0.0.0'
max_connections: ${MAX_CONNECTIONS:-2000}
max_batch_size: ${MAX_BATCH_SIZE:-10}
http_methods:
- path: /health
method: system_health
- path: /liveness
method: chain_getBlockHash
cors: all
rate_limit:
connection:
burst: ${RATE_LIMIT_CONNECTION_BURST:-400}
period_secs: ${RATE_LIMIT_CONNECTION_PERIOD_SECS:-1}
ip:
burst: ${RATE_LIMIT_IP_BURST:-2000}
period_secs: ${RATE_LIMIT_IP_PERIOD_SECS:-10}
# use X-Forwarded-For header to get real ip, if available (e.g. behind a load balancer).
# WARNING: Use with caution, as this xff header can be forged.
use_xff: true # default is false
xff_header: ${XFF_HEADER:-x-forwarded-for}
prometheus:
port: 9616
listen_address: "0.0.0.0"
label: ${PROMETHEUS_LABEL:-subway}
middlewares:
methods:
- delay
- response
- inject_params
- cache
- upstream
subscriptions:
- merge_subscription
- upstream
rpcs: everything