Open tonyhardcode opened 10 months ago
It's automatic. When enabling trusted proxies in global options, the HTTP server itself checks trust at the start of every request, then the reverse_proxy
module pulls from the request context to check if trusted and if trusted it augments the X-Forwarded-*
headers as appropriate.
Your config looks correct, I just recommend removing http_port
/https_port
because you're just re-stating the defaults which is not useful, plus you can remove route {
because it doesn't do anything for you in this case.
After some google searching I have not come across examples of using this plugin properly. After entering the trusted_proxies cloudflare under servers, how are we to implement the checking of cloudflare proxies for something like a reverse_proxy?