49 lines
1 KiB
YAML
49 lines
1 KiB
YAML
chihaya:
|
|
announce_interval: 15m
|
|
prometheus_addr: localhost:6880
|
|
max_numwant: 50
|
|
default_numwant: 25
|
|
|
|
http:
|
|
addr: 0.0.0.0:6881
|
|
allow_ip_spoofing: false
|
|
real_ip_header: x-real-ip
|
|
read_timeout: 5s
|
|
write_timeout: 5s
|
|
request_timeout: 5s
|
|
|
|
udp:
|
|
addr: 0.0.0.0:6881
|
|
allow_ip_spoofing: false
|
|
max_clock_skew: 10s
|
|
private_key: |
|
|
paste a random string here that will be used to hmac connection IDs
|
|
|
|
storage:
|
|
gc_interval: 14m
|
|
peer_lifetime: 15m
|
|
shards: 1
|
|
|
|
prehooks:
|
|
- name: jwt
|
|
config:
|
|
issuer: https://issuer.com
|
|
audience: https://chihaya.issuer.com
|
|
jwk_set_url: https://issuer.com/keys
|
|
jwk_set_update_interval: 5m
|
|
- name: client approval
|
|
config:
|
|
whitelist:
|
|
- OP1011
|
|
blacklist:
|
|
- OP1012
|
|
- name: interval variation
|
|
config:
|
|
modify_response_probability: 0.2
|
|
max_increase_delta: 60
|
|
modify_min_interval: true
|
|
|
|
posthooks:
|
|
- name: gossip
|
|
config:
|
|
boostrap_node: 127.0.0.1:6881
|