Closed josecelano closed 4 months ago
The problem was I was making the request directly to the tracker container:
http://tracker.torrust-demo.com:7070
Instead of using the proxy (nginx):
https://tracker.torrust-demo.com
The error was OK; the tracker configuration enabled the reverse proxy with:
[core.net]
on_reverse_proxy = true
However, the request does not contain the X-Forwarded-For
header since we are not using the proxy for the request.
$ cargo run --bin http_tracker_client announce https://tracker.torrust-demo.com 9c38422213e30bff212b30c360d26f9a02136422 | jq
Finished `dev` profile [optimized + debuginfo] target(s) in 0.09s
Running `target/debug/http_tracker_client announce 'https://tracker.torrust-demo.com' 9c38422213e30bff212b30c360d26f9a02136422`
{
"complete": 1,
"incomplete": 0,
"interval": 300,
"min interval": 300,
"peers": []
}
I have updated the demo and I'm getting this error trying to make an HTTP announce request:
New tracker config file
Previous tracker config file