When running behind a HTTP proxy, one needs to accept X-Forwarded-* headers to properly generate URLs.
Diff Detail
Diff Detail
Event Timeline
Comment Actions
The docs mention "Do not use this middleware in non-proxy setups for security reasons." I would assume because this allows the client to set the host information. I use this in our setups. I think I apply it in the app launch file that we hand to gunicorn instead of here.
Also, you displaced the comment that was for the next line of code.
Comment Actions
Ah, I see. I'm running LNT within Apache instance that is behind a different HTTP proxy. Maybe one can somehow tweak Apache to help here, but I was unable to find anything.
That said, I'll probably need ProxyFix. What about making that conditional based on a config variable in lnt.cfg?
Also, you displaced the comment that was for the next line of code.