Skip to content

Allow users to configure trusted_proxies for X-Forwarded-For - #125

Open
ChampionBuffalo1 wants to merge 2 commits into
nexxeln:mainfrom
ChampionBuffalo1:feat/external-proxy
Open

ChampionBuffalo1 wants to merge 2 commits into
nexxeln:mainfrom
ChampionBuffalo1:feat/external-proxy

Conversation

@ChampionBuffalo1

Copy link
Copy Markdown

Hi! I've been running torrential in my homelab for a few days (love the work! :)), exposed publicly for some friends and family.

However, I noticed that torrential only trusts X-Forwarded-For from loopback, which doesn't work for my setup since my reverse proxy runs on a separate network. The same goes for any proxy on another host, or for setups behind Cloudflare.

This PR lets users configure a trusted_proxies setting: IP addresses or CIDR ranges of reverse proxies whose X-Forwarded-For the engine trusts, alongside loopback as before.

trusted_proxies: [172.17.0.1, 10.0.0.0/8]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant