This repository was archived by the owner on Feb 16, 2023. It is now read-only.
I can not get PAPERLESS_ENABLE_HTTP_REMOTE_USER to work #1570
Unanswered
jacobalberty
asked this question in
Support
Replies: 2 comments
-
So I got this to work by using github.com/tommoulard/htransformation with this as a middleware:
it feels less than ideal but it works |
Beta Was this translation helpful? Give feedback.
0 replies
-
You can go without the extra traefik middleware and just set
as paperless environment property. I had the exact same problem and implemented this: #677. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
My setup has paperless (latest version from git) running in docker with traefik proxying traffic and traefik-forward-auth providing oauth2 authentication and forwarding my username via X-Forwarded-User. I have verified via traefik logs that that header is set in the request and have added that user to paperless:
I have also added the following environment variables to my paperless docker configuration:
and finally running
docker-compose exec webserver python manage.py diffsettings | grep REMOTE
Shows it appears to be enabled and has the right header selected:
I have also tried setting
HTTP_REMOTE_USER_HEADER_NAME
toHTTP_X_FORWARDED_USER
as per the documentation for django nothing seems to be working is there something else i'm missing here?Beta Was this translation helpful? Give feedback.
All reactions