|
1 |
| -# Configuring Torrust Tracker |
2 |
| -Torrust Tracker's configuration is a simple TOML file. If no TOML file is found, it will run a default configuration. |
| 1 | +# Configuring torrust-tracker |
| 2 | +torrust-tracker's configuration is stored in a TOML file called: `config.toml`. The config file can be generated by running the torrust-tracker for the first time. |
3 | 3 |
|
4 | 4 | ## Tracker Modes
|
5 |
| -Torrust Tracker currently supports 4 different tracking modes. |
| 5 | +torrust-tracker currently supports 4 different tracking modes. |
6 | 6 |
|
7 | 7 | ### Public
|
8 | 8 | `mode: public`
|
@@ -32,21 +32,21 @@ AND the tracker will only track whitelisted torrents.
|
32 | 32 | ## Configuration
|
33 | 33 |
|
34 | 34 | ### Root Level
|
35 |
| -| Root | REQUIRED | | Values | Default | |
36 |
| -|-----------------------------------|----------|--------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------|-----------| |
37 |
| -| log_level | OPTIONAL | Log level. | `off`, `info` or `trace` | `info` | |
38 |
| -| mode | REQUIRED | Tracker Mode. | `public`, `listed`, `private` or `private_listed` | `public` | |
39 |
| -| db_driver | REQUIRED | Database Driver. | `MySQL` or `Sqlite3` | `Sqlite3` | |
40 |
| -| db_path | REQUIRED | Database Path. | `MySQL CONNECTION URL` (mysql://USERNAME:PASSWORD@HOST:3306/DATABASE) or `Sqlite3 DATABASE PATH` | `data.db` | |
41 |
| -| announce_interval | REQUIRED | Interval that peers will announce in. | Interval in seconds. | 120 | |
42 |
| -| min_announce_interval | REQUIRED | Minimal interval that peers will announce in. | Interval in seconds. | 120 | |
43 |
| -| max_peer_timeout | REQUIRED | Maximum seconds peers can be inactive before being removed. | Seconds. | 900 | |
44 |
| -| on_reverse_proxy | REQUIRED | If true, tracker will use X-Forwarded-For header as peer IP. | `true` or `false` | `false` | |
45 |
| -| external_ip | OPTIONAL | Needs to be set if announcing to this tracker from local network. | IP like: `100.69.420.117` | EMPTY | |
46 |
| -| tracker_usage_statistics | REQUIRED | Keep track of tracker usage statistics. | `true` or `false` | `true` | |
47 |
| -| persistent_torrent_completed_stat | REQUIRED | Keep track of the completed stat in torrents, even after reboot. | `true` or `false` | `false` | |
48 |
| -| inactive_peer_cleanup_interval | REQUIRED | Inactive peers get removed from each torrent every interval. | Interval in seconds or 0 to disable. | 600 | |
49 |
| -| remove_peerless_torrents | REQUIRED | Remove torrents without peers during the inactive_peer_cleanup_interval. | `true` or `false` | `true` | |
| 35 | +| Root | Requirement | | Values | Default | |
| 36 | +|-----------------------------------|-------------|--------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------|-----------| |
| 37 | +| log_level | OPTIONAL | Log level. | `off`, `info` or `trace` | `info` | |
| 38 | +| mode | REQUIRED | Tracker Mode (See above). | `public`, `listed`, `private` or `private_listed` | `public` | |
| 39 | +| db_driver | REQUIRED | Database Driver. | `MySQL` or `Sqlite3` | `Sqlite3` | |
| 40 | +| db_path | REQUIRED | Database Path. | `MySQL CONNECTION URL` (mysql://USERNAME:PASSWORD@HOST:3306/DATABASE) or `Sqlite3 DATABASE PATH` | `data.db` | |
| 41 | +| announce_interval | REQUIRED | Interval that peers will announce in. | Interval in seconds. | 120 | |
| 42 | +| min_announce_interval | REQUIRED | Minimal interval that peers will announce in. | Interval in seconds. | 120 | |
| 43 | +| max_peer_timeout | REQUIRED | Maximum seconds peers can be inactive before being removed. | Seconds. | 900 | |
| 44 | +| on_reverse_proxy | REQUIRED | If true, tracker will use X-Forwarded-For header as peer IP. | `true` or `false` | `false` | |
| 45 | +| external_ip | OPTIONAL | Needs to be set if announcing to this tracker from local network. | IP like: `100.69.420.117` | EMPTY | |
| 46 | +| tracker_usage_statistics | REQUIRED | Keep track of tracker usage statistics. | `true` or `false` | `true` | |
| 47 | +| persistent_torrent_completed_stat | REQUIRED | Keep track of the completed stat in torrents, even after reboot. | `true` or `false` | `false` | |
| 48 | +| inactive_peer_cleanup_interval | REQUIRED | Inactive peers get removed from each torrent every interval. | Interval in seconds or 0 to disable. | 600 | |
| 49 | +| remove_peerless_torrents | REQUIRED | Remove torrents without peers during the inactive_peer_cleanup_interval. | `true` or `false` | `true` | |
50 | 50 |
|
51 | 51 | ### UDP Tracker
|
52 | 52 | | [[udp_trackers]] (can add multiple) | OPTIONAL | | Values | Default |
|
@@ -90,16 +90,27 @@ inactive_peer_cleanup_interval = 600
|
90 | 90 | remove_peerless_torrents = true
|
91 | 91 |
|
92 | 92 | [[udp_trackers]]
|
93 |
| -enabled = false |
| 93 | +enabled = true |
94 | 94 | bind_address = "0.0.0.0:6969"
|
95 | 95 |
|
| 96 | +[[udp_trackers]] |
| 97 | +enabled = true |
| 98 | +bind_address = ":::6969" |
| 99 | + |
96 | 100 | [[http_trackers]]
|
97 | 101 | enabled = true
|
98 | 102 | bind_address = "0.0.0.0:6969"
|
99 | 103 | ssl_enabled = false
|
100 | 104 | ssl_cert_path = ""
|
101 | 105 | ssl_key_path = ""
|
102 | 106 |
|
| 107 | +[[http_trackers]] |
| 108 | +enabled = true |
| 109 | +bind_address = ":::6969" |
| 110 | +ssl_enabled = false |
| 111 | +ssl_cert_path = "" |
| 112 | +ssl_key_path = "" |
| 113 | + |
103 | 114 | [http_api]
|
104 | 115 | enabled = true
|
105 | 116 | bind_address = "127.0.0.1:1212"
|
|
0 commit comments