Skip to content

"Access Logs" with reverse proxy -> X-Forwarded-For #628

Answered by gi0baro
rtoenniges asked this question in Q&A
Discussion options

You must be logged in to vote

Are there any configurations for granian to make it use the forwarded-for header?

As stated in the README:

Since none of the supported applications protocols define a strategy for proxies' forwarded headers, Granian doesn't provide any option to configure its behaviour around them.
What Granian provides instead, for contexts in which is being run behind a reverse proxy, are wrappers you can use on top of your application, in order to alter the request scope based on the headers forwarded by the proxy itself. You can find such wrappers in the granian.utils.proxies module

So, at the time being, the only way would be if paperless team use those wrappers in their codebase.
I guess you cou…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@rtoenniges
Comment options

Answer selected by gi0baro
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants