*: add sanitization example config
This commit is contained in:
parent
134744a484
commit
ce43a09956
1 changed files with 31 additions and 12 deletions
|
@ -24,14 +24,6 @@ chihaya:
|
||||||
# BitTorrent traffic.
|
# BitTorrent traffic.
|
||||||
addr: "0.0.0.0:6881"
|
addr: "0.0.0.0:6881"
|
||||||
|
|
||||||
# When enabled, the IP address used to connect to the tracker will not
|
|
||||||
# override the value clients advertise as their IP address.
|
|
||||||
allow_ip_spoofing: false
|
|
||||||
|
|
||||||
# The HTTP Header containing the IP address of the client.
|
|
||||||
# This is only necessary if using a reverse proxy.
|
|
||||||
real_ip_header: "x-real-ip"
|
|
||||||
|
|
||||||
# The path to the required files to listen via HTTPS.
|
# The path to the required files to listen via HTTPS.
|
||||||
tls_cert_path: ""
|
tls_cert_path: ""
|
||||||
tls_key_path: ""
|
tls_key_path: ""
|
||||||
|
@ -44,6 +36,23 @@ chihaya:
|
||||||
# Disabling this should increase performance/decrease load.
|
# Disabling this should increase performance/decrease load.
|
||||||
enable_request_timing: false
|
enable_request_timing: false
|
||||||
|
|
||||||
|
# When enabled, the IP address used to connect to the tracker will not
|
||||||
|
# override the value clients advertise as their IP address.
|
||||||
|
allow_ip_spoofing: false
|
||||||
|
|
||||||
|
# The HTTP Header containing the IP address of the client.
|
||||||
|
# This is only necessary if using a reverse proxy.
|
||||||
|
real_ip_header: "x-real-ip"
|
||||||
|
|
||||||
|
# The maximum number of peers returned for an individual request.
|
||||||
|
max_numwant: 100
|
||||||
|
|
||||||
|
# The default number of peers returned for an individual request.
|
||||||
|
default_numwant: 50
|
||||||
|
|
||||||
|
# The maximum number of infohashes that can be scraped in one request.
|
||||||
|
max_scrape_infohashes: 50
|
||||||
|
|
||||||
# This block defines configuration for the tracker's UDP interface.
|
# This block defines configuration for the tracker's UDP interface.
|
||||||
# If you do not wish to run this, delete this section.
|
# If you do not wish to run this, delete this section.
|
||||||
udp:
|
udp:
|
||||||
|
@ -51,10 +60,6 @@ chihaya:
|
||||||
# BitTorrent traffic.
|
# BitTorrent traffic.
|
||||||
addr: "0.0.0.0:6881"
|
addr: "0.0.0.0:6881"
|
||||||
|
|
||||||
# When enabled, the IP address used to connect to the tracker will not
|
|
||||||
# override the value clients advertise as their IP address.
|
|
||||||
allow_ip_spoofing: false
|
|
||||||
|
|
||||||
# The leeway for a timestamp on a connection ID.
|
# The leeway for a timestamp on a connection ID.
|
||||||
max_clock_skew: 10s
|
max_clock_skew: 10s
|
||||||
|
|
||||||
|
@ -65,6 +70,20 @@ chihaya:
|
||||||
# Disabling this should increase performance/decrease load.
|
# Disabling this should increase performance/decrease load.
|
||||||
enable_request_timing: false
|
enable_request_timing: false
|
||||||
|
|
||||||
|
# When enabled, the IP address used to connect to the tracker will not
|
||||||
|
# override the value clients advertise as their IP address.
|
||||||
|
allow_ip_spoofing: false
|
||||||
|
|
||||||
|
# The maximum number of peers returned for an individual request.
|
||||||
|
max_numwant: 100
|
||||||
|
|
||||||
|
# The default number of peers returned for an individual request.
|
||||||
|
default_numwant: 50
|
||||||
|
|
||||||
|
# The maximum number of infohashes that can be scraped in one request.
|
||||||
|
max_scrape_infohashes: 50
|
||||||
|
|
||||||
|
|
||||||
# This block defines configuration used for the storage of peer data.
|
# This block defines configuration used for the storage of peer data.
|
||||||
storage:
|
storage:
|
||||||
name: memory
|
name: memory
|
||||||
|
|
Loading…
Reference in a new issue