tracker/example_config.yaml

90 lines
2.8 KiB
YAML
Raw Normal View History

2016-08-17 03:42:08 +02:00
chihaya:
# The interval communicated with BitTorrent clients informing them how
# frequently they should announce in between client events.
2016-08-03 10:25:45 +02:00
announce_interval: 15m
# The network interface that will bind to an HTTP endpoint that can be
# scraped by an instance of the Prometheus time series database.
# For more info see: https://prometheus.io
prometheus_addr: 0.0.0.0:6880
# The maximum number of peers returned in an announce.
2016-11-28 20:55:04 +01:00
max_numwant: 50
# The default number of peers returned in an announce.
2016-11-28 20:55:04 +01:00
default_numwant: 25
2016-08-05 07:47:04 +02:00
# This block defines configuration for the tracker's HTTP interface.
# If you do not wish to run this, delete this section.
2016-08-03 10:25:45 +02:00
http:
# The network interface that will bind to an HTTP server for serving
# BitTorrent traffic.
2016-08-03 10:25:45 +02:00
addr: 0.0.0.0:6881
# When enabled, the IP address used to connect to the tracker overrides
# the value clients advertise.
2016-08-10 02:29:52 +02:00
allow_ip_spoofing: false
# The HTTP Header containing the IP address of the client.
# This is only necessary if using a reverse proxy.
2016-08-03 10:25:45 +02:00
real_ip_header: x-real-ip
# The timeout durations for HTTP requests.
2016-08-03 10:25:45 +02:00
read_timeout: 5s
write_timeout: 5s
request_timeout: 5s
2016-08-05 07:47:04 +02:00
# This block defines configuration for the tracker's UDP interface.
# If you do not wish to run this, delete this section.
2016-08-03 10:25:45 +02:00
udp:
# The network interface that will bind to a UDP server for serving
# BitTorrent traffic.
2016-08-03 10:25:45 +02:00
addr: 0.0.0.0:6881
# When enabled, the IP address used to connect to the tracker overrides
# the value clients advertise.
2016-08-10 02:29:52 +02:00
allow_ip_spoofing: false
# The leeway for a timestamp on a connection ID.
max_clock_skew: 10s
# The key used to encrypt connection IDs.
private_key: |
paste a random string here that will be used to hmac connection IDs
2016-08-05 07:47:04 +02:00
# This block defines configuration used for the storage of peer data.
2016-08-03 10:25:45 +02:00
storage:
# The frequency which stale peers are removed.
2016-08-17 02:32:38 +02:00
gc_interval: 14m
# The amount of time until a peer is considered stale.
# To avoid churn, keep this slightly larger than `announce_interval`
peer_lifetime: 16m
# The number of partitions data will be divided into in order to provide a
# higher degree of parallelism.
2016-08-17 02:32:38 +02:00
shards: 1
2016-08-05 07:47:04 +02:00
# This block defines configuration used for middleware executed before a
# response has been returned to a BitTorrent client.
2016-08-03 10:25:45 +02:00
prehooks:
- name: jwt
config:
2016-09-01 03:09:34 +02:00
issuer: https://issuer.com
audience: https://chihaya.issuer.com
jwk_set_url: https://issuer.com/keys
2016-08-03 10:25:45 +02:00
jwk_set_update_interval: 5m
2016-09-02 02:30:53 +02:00
- name: client approval
2016-08-03 10:25:45 +02:00
config:
2016-09-02 02:30:53 +02:00
whitelist:
2016-08-03 10:25:45 +02:00
- OP1011
2016-09-02 02:30:53 +02:00
blacklist:
- OP1012
2016-10-24 14:16:21 +02:00
- name: interval variation
config:
modify_response_probability: 0.2
max_increase_delta: 60
modify_min_interval: true