diff --git a/example_config.yaml b/example_config.yaml index 8b6bffa..4116a99 100644 --- a/example_config.yaml +++ b/example_config.yaml @@ -24,14 +24,6 @@ chihaya: # BitTorrent traffic. 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. tls_cert_path: "" tls_key_path: "" @@ -44,6 +36,23 @@ chihaya: # Disabling this should increase performance/decrease load. 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. # If you do not wish to run this, delete this section. udp: @@ -51,10 +60,6 @@ chihaya: # BitTorrent traffic. 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. max_clock_skew: 10s @@ -65,6 +70,20 @@ chihaya: # Disabling this should increase performance/decrease load. 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. storage: name: memory