diff options
Diffstat (limited to 'opentracker.conf.sample')
| -rw-r--r-- | opentracker.conf.sample | 131 |
1 files changed, 110 insertions, 21 deletions
diff --git a/opentracker.conf.sample b/opentracker.conf.sample index db45122..da0b601 100644 --- a/opentracker.conf.sample +++ b/opentracker.conf.sample | |||
| @@ -2,19 +2,13 @@ | |||
| 2 | # | 2 | # |
| 3 | 3 | ||
| 4 | # I) Address opentracker will listen on, using both, tcp AND udp family | 4 | # I) Address opentracker will listen on, using both, tcp AND udp family |
| 5 | # (note, that port 6969 is implicite if ommitted). | 5 | # (note, that port 6969 is implicit if omitted). |
| 6 | # | 6 | # |
| 7 | # If no listen option is given (here or on the command line), opentracker | 7 | # If no listen option is given (here or on the command line), opentracker |
| 8 | # listens on 0.0.0.0:6969 tcp and udp. | 8 | # listens on 0.0.0.0:6969 tcp and udp. |
| 9 | # | 9 | # |
| 10 | # The next variable determines if udp sockets are handled in the event | 10 | # Addresses are collected while this file is read and bound afterwards, |
| 11 | # loop (set it to 0, the default) or are handled in blocking reads in | 11 | # so the order of the statements below does not matter. |
| 12 | # dedicated worker threads. You have to set this value before the | ||
| 13 | # listen.tcp_udp or listen.udp statements before it takes effect, but you | ||
| 14 | # can re-set it for each listen statement. Normally you should keep it at | ||
| 15 | # the top of the config file. | ||
| 16 | # | ||
| 17 | # listen.udp.workers 4 | ||
| 18 | # | 12 | # |
| 19 | # listen.tcp_udp 0.0.0.0 | 13 | # listen.tcp_udp 0.0.0.0 |
| 20 | # listen.tcp_udp 192.168.0.1:80 | 14 | # listen.tcp_udp 192.168.0.1:80 |
| @@ -25,6 +19,37 @@ | |||
| 25 | # listen.tcp 0.0.0.0 | 19 | # listen.tcp 0.0.0.0 |
| 26 | # listen.udp 192.168.0.1:6969 | 20 | # listen.udp 192.168.0.1:6969 |
| 27 | # | 21 | # |
| 22 | # A listen statement takes options after the address: | ||
| 23 | # | ||
| 24 | # workers=<count> handle this socket in that many dedicated worker | ||
| 25 | # threads instead of in the event loop. Defaults to 1 | ||
| 26 | # for udp and 0 for tcp. | ||
| 27 | # shared allow another process to bind the same address and | ||
| 28 | # let the kernel share the traffic. Only useful if you | ||
| 29 | # deliberately run a second tracker there. | ||
| 30 | # | ||
| 31 | # listen.udp 10.0.0.5:6969 workers=4 shared | ||
| 32 | # | ||
| 33 | # The two statements below set defaults for every listen statement in | ||
| 34 | # this file that does not name the option itself. They may appear | ||
| 35 | # anywhere. | ||
| 36 | # | ||
| 37 | # listen.udp.workers 4 | ||
| 38 | # listen.tcp.workers 4 | ||
| 39 | # listen.shared 1 | ||
| 40 | # | ||
| 41 | # Raising the worker count pays off where the kernel spreads arriving | ||
| 42 | # datagrams over a group of sockets bound to one address. Linux does so | ||
| 43 | # and FreeBSD has since 12.0, Darwin does not. opentracker asks at start | ||
| 44 | # up and binds one socket per worker only where the answer is yes. Where | ||
| 45 | # it is no, all workers read the one socket and contend for its receive | ||
| 46 | # queue, which costs more than it returns. See the TUNING section of | ||
| 47 | # opentracker.conf(5); tests/udp_scaling.py sweeps the setting on the | ||
| 48 | # machine that will carry the traffic. | ||
| 49 | # | ||
| 50 | # A count of 0 answers udp from the event loop, in the thread that also | ||
| 51 | # serves tcp, which is what opentracker did before. | ||
| 52 | # | ||
| 28 | # Note, that using 0.0.0.0 for udp sockets may yield surprising results. | 53 | # Note, that using 0.0.0.0 for udp sockets may yield surprising results. |
| 29 | # An answer packet sent on that socket will not necessarily have the | 54 | # An answer packet sent on that socket will not necessarily have the |
| 30 | # source address that the requesting client may expect, but any address | 55 | # source address that the requesting client may expect, but any address |
| @@ -44,17 +69,70 @@ | |||
| 44 | # listing, so choose one of those options at compile time. File format | 69 | # listing, so choose one of those options at compile time. File format |
| 45 | # is straight forward: "<hex info hash>\n<hex info hash>\n..." | 70 | # is straight forward: "<hex info hash>\n<hex info hash>\n..." |
| 46 | # | 71 | # |
| 72 | # IIa) You can enable dynamic changesets to accesslists by enabling | ||
| 73 | # WANT_DYNAMIC_ACCESSLIST. | ||
| 74 | # | ||
| 75 | # The suggested way to work with dynamic changeset lists is to keep a | ||
| 76 | # main accesslist file that is loaded when opentracker (re)starts and | ||
| 77 | # reloaded infrequently (hourly or daily). | ||
| 78 | # | ||
| 79 | # All changes to the accesslist (e.g. from a web frontend) should be | ||
| 80 | # both appended to or removed from that file and sent to opentracker. By | ||
| 81 | # keeping dynamic changeset lists, you can avoid reloading huge | ||
| 82 | # accesslists whenever just a single entry is added or removed. | ||
| 83 | # | ||
| 84 | # Any info_hash (format see above) written to the fifo_add file will be | ||
| 85 | # kept on a dynamic add-changeset, removed from the dynamic | ||
| 86 | # delete-changeset and treated as if it was in the main accesslist file. | ||
| 87 | # The semantic of the respective dynamic changeset depends on whether | ||
| 88 | # WANT_ACCESSLIST_WHITE or WANT_ACCESSLIST_BLACK is enabled. | ||
| 89 | # | ||
| 90 | # access.fifo_add /var/run/opentracker/adder.fifo | ||
| 91 | # | ||
| 92 | # Any info_hash (format see above) written to the fifo_delete file will | ||
| 93 | # be kept on a dynamic delete-changeset, removed from the dynamic | ||
| 94 | # add-changeset and treated as if it was not in the main accesslist | ||
| 95 | # file. | ||
| 96 | # | ||
| 97 | # access.fifo_delete /var/run/opentracker/deleter.fifo | ||
| 98 | # | ||
| 99 | # If you reload the accesslist by sending SIGHUP to the tracker process, | ||
| 100 | # the dynamic lists are flushed, as opentracker assumes thoses lists are | ||
| 101 | # merged into the main accesslist. | ||
| 102 | # | ||
| 103 | # NOTE: While you can have multiple writers sending lines to the fifos, | ||
| 104 | # any writes larger than PIPE_BUF (see your limits.h, minimally 512 | ||
| 105 | # bytes but usually 4096) may be interleaved with data sent by other | ||
| 106 | # writers. This can lead to unparsable lines of info_hashes. | ||
| 107 | # | ||
| 108 | # IIb) | ||
| 47 | # If you do not want to grant anyone access to your stats, enable the | 109 | # If you do not want to grant anyone access to your stats, enable the |
| 48 | # WANT_RESTRICT_STATS option in Makefile and bless the ip addresses | 110 | # WANT_RESTRICT_STATS option in Makefile and bless the ip addresses |
| 49 | # allowed to fetch stats here. | 111 | # or network allowed to fetch stats here. |
| 50 | # | 112 | # |
| 51 | # access.stats 192.168.0.23 | 113 | # access.stats 192.168.0.23 |
| 114 | # access.stats 10.1.1.23 | ||
| 52 | # | 115 | # |
| 53 | # There is another way of hiding your stats. You can obfuscate the path | 116 | # There is another way of hiding your stats. You can obfuscate the path |
| 54 | # to them. Normally it is located at /stats but you can configure it to | 117 | # to them. Normally it is located at /stats but you can configure it to |
| 55 | # appear anywhere on your tracker. | 118 | # appear anywhere on your tracker. |
| 56 | # | 119 | # |
| 57 | # access.stats_path stats | 120 | # access.stats_path stats |
| 121 | # | ||
| 122 | # If opentracker lives behind one or multiple reverse proxies, | ||
| 123 | # every http connection appears to come from these proxies. In order to | ||
| 124 | # take the X-Forwarded-For address instead, compile opentracker with the | ||
| 125 | # WANT_IP_FROM_PROXY option and set your proxy addresses or networkss here. | ||
| 126 | # | ||
| 127 | # access.proxy 10.0.1.23 | ||
| 128 | # access.proxy 192.0.0.0/8 | ||
| 129 | # | ||
| 130 | # Symmetrically, if you have restricted the access to fullscrapes with | ||
| 131 | # the WANT_RESTRICT_FULLSCRAPE compile option, this is how you bless ip | ||
| 132 | # addresses to fetch fullscrapes | ||
| 133 | # | ||
| 134 | # access.fullscrape 10.1.1.23 | ||
| 135 | # | ||
| 58 | 136 | ||
| 59 | # III) Live sync uses udp multicast packets to keep a cluster of opentrackers | 137 | # III) Live sync uses udp multicast packets to keep a cluster of opentrackers |
| 60 | # synchronized. This option tells opentracker which port to listen for | 138 | # synchronized. This option tells opentracker which port to listen for |
| @@ -65,12 +143,22 @@ | |||
| 65 | # livesync.cluster.listen 192.168.0.1:9696 | 143 | # livesync.cluster.listen 192.168.0.1:9696 |
| 66 | # | 144 | # |
| 67 | # Note that two udp sockets will be opened. One on ip address 0.0.0.0 | 145 | # Note that two udp sockets will be opened. One on ip address 0.0.0.0 |
| 68 | # port 9696, that will join the multicast group 224.0.42.23 for incoming | 146 | # port 9696, that will join the multicast group for incoming udp packets |
| 69 | # udp packets and one on ip address 192.168.0.1 port 9696 for outgoing | 147 | # and one on ip address 192.168.0.1 port 9696 for outgoing ones. Every |
| 70 | # udp packets. | 148 | # member of a cluster has to agree on the port as well as the group. |
| 149 | # | ||
| 150 | # The group a cluster talks in. | ||
| 151 | # | ||
| 152 | # livesync.cluster.group 239.192.23.5 | ||
| 153 | # | ||
| 154 | # For reaosns of backwards comaptibility with legacy trackers, it | ||
| 155 | # defaults to 224.0.23.5, which, technically sits in a range IANA | ||
| 156 | # assigns on request. | ||
| 157 | # | ||
| 158 | # A cluster of your own is better served by an address out of | ||
| 159 | # 239.192.0.0/14, which RFC 2365 sets aside for private use. Packets | ||
| 160 | # carry a ttl of 1 either way, so they never leave the local link. | ||
| 71 | # | 161 | # |
| 72 | # As of now one and only one ip address must be given, if opentracker | ||
| 73 | # was built with the WANT_SYNC_LIVE feature. | ||
| 74 | # | 162 | # |
| 75 | 163 | ||
| 76 | # IV) Sync between trackers running in a cluster is restricted to packets | 164 | # IV) Sync between trackers running in a cluster is restricted to packets |
| @@ -81,12 +169,6 @@ | |||
| 81 | # livesync.cluster.node_ip 192.168.0.4 | 169 | # livesync.cluster.node_ip 192.168.0.4 |
| 82 | # livesync.cluster.node_ip 192.168.0.5 | 170 | # livesync.cluster.node_ip 192.168.0.5 |
| 83 | # livesync.cluster.node_ip 192.168.0.6 | 171 | # livesync.cluster.node_ip 192.168.0.6 |
| 84 | # | ||
| 85 | # This is the admin ip address for old style (HTTP based) asynchronus | ||
| 86 | # tracker syncing. | ||
| 87 | # | ||
| 88 | # batchsync.cluster.admin_ip 10.1.1.1 | ||
| 89 | # | ||
| 90 | 172 | ||
| 91 | # V) Control privilege drop behaviour. | 173 | # V) Control privilege drop behaviour. |
| 92 | # Put in the directory opentracker will chroot/chdir to. All black/white | 174 | # Put in the directory opentracker will chroot/chdir to. All black/white |
| @@ -104,3 +186,10 @@ | |||
| 104 | # redirect to another location (shell option -r). | 186 | # redirect to another location (shell option -r). |
| 105 | # | 187 | # |
| 106 | # tracker.redirect_url https://your.tracker.local/ | 188 | # tracker.redirect_url https://your.tracker.local/ |
| 189 | |||
| 190 | # VII) How long a torrent that has fallen empty is kept for its download count | ||
| 191 | # alone, in minutes. Default and maximum is 1440 minutes (24 hours). | ||
| 192 | # Trade-off: lower value less memory usage at the cost of less reliable | ||
| 193 | # download counts. | ||
| 194 | # | ||
| 195 | # tracker.empty_torrent_timeout 60 | ||
