I found both NGINX configurations listed in the feed to get client connections working. Like you, I'm not involving Cloudflare either
my trouble is nether solution get the clients public IPs to my XBT.
Code:
# START REV-PROXY CONF
server {
listen 8443 ssl http2;
server_name tracker.example.com;
ssl_certificate /etc/letsencrypt/live/tracker.example.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/tracker.example.com/privkey.pem;
ssl_trusted_certificate /etc/letsencrypt/live/tracker.example.com/chain.pem;
include snippets/ssl.conf;
location ~ ^/(.*?)/announce$ {
proxy_pass http://127.0.0.1:4000/$1/announce$is_args$args&ip=$remote_addr;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $remote_addr;
proxy_pass_header Content-Type;
proxy_pass_header Content-Disposition;
proxy_pass_header Content-Length;
proxy_buffering off;
proxy_buffer_size 128k;
proxy_busy_buffers_size 256k;
proxy_buffers 4 256k;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $http_connection;
real_ip_recursive on;
}
}
# END REV-PROXY CONF
I've even tried disabling all the SSL config and certs and just rev-proxy from 8443 to to 4000 I still lose my client IPs. I'm grasping at straws here...could it be my version of XBT or some requirement in my XBT config? (everything else about my XBT is working)
This is the copy of XBT that I'm currently using.
wget
https://github.com/OlafvdSpek/xbt/archive/master.zip
Thanks again for always replying to my questions but I understand I'm asking for your time. I would be glad to toss a PayPal donation your way or repay the favor with my skills somehow.