fix ports and conf header

This commit is contained in:
Victor Shyba 2022-05-25 18:47:51 -03:00 committed by GitHub
parent 48b28d0b07
commit 226d6eace4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -41,16 +41,16 @@ Configuration of the tracker is done via one YAML configuration file.
The `dist/` directory contains an example configuration file. The `dist/` directory contains an example configuration file.
Files and directories under `docs/` contain detailed information about configuring middleware, storage implementations, architecture etc. Files and directories under `docs/` contain detailed information about configuring middleware, storage implementations, architecture etc.
This is an example for an UDP server running on 6969 with metrics enabled. Remember to **change the private key** to some random string. This is an example for an UDP server running on 9252 with metrics enabled. Remember to **change the private key** to some random string.
``` ```
--- ---
tracker: chihaya:
announce_interval: "30m" announce_interval: "30m"
min_announce_interval: "15m" min_announce_interval: "15m"
metrics_addr: "0.0.0.0:6880" metrics_addr: "0.0.0.0:6880"
udp: udp:
addr: "0.0.0.0:6969" addr: "0.0.0.0:9252"
max_clock_skew: "10s" max_clock_skew: "10s"
private_key: ">>>>CHANGE THIS TO SOME RANDOM THING<<<<" private_key: ">>>>CHANGE THIS TO SOME RANDOM THING<<<<"
enable_request_timing: false enable_request_timing: false
@ -84,7 +84,7 @@ services:
network_mode: host network_mode: host
restart: always restart: always
``` ```
Unfortunately the tracker does not work without `network_mode: host` due some bug with UDP on Docker. In this mode, firewall configuration needs to be done manually. If using `ufw`, try `ufw allow 6969`. Unfortunately the tracker does not work without `network_mode: host` due some bug with UDP on Docker. In this mode, firewall configuration needs to be done manually. If using `ufw`, try `ufw allow 9252`.
Now, move the configuration to the same directory as `docker-compose.yml`, naming it `conf.yml`. If it is not ready, check the configuration section above. Now, move the configuration to the same directory as `docker-compose.yml`, naming it `conf.yml`. If it is not ready, check the configuration section above.