Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Paperless-ngx: Ignore Proxy auth for usage with apps #1223

Merged

Conversation

MalteKiefer
Copy link
Contributor

Without this line, no mobile app can recognize paperless and a usage with mobile apps is not possible

Without this line, no mobile app can recognize the mobile app
@nmfretz
Copy link
Contributor

nmfretz commented Jul 22, 2024

Thanks @MalteKiefer. I think this is a good solution considering Paperless has its own in-built authentication already.

The other solution would be to keep the proxy's authentication, but whitelist certain routes with the PROXY_AUTH_WHITELIST environment variable for the app_proxy container.

So for example, if a mobile app interacts with paperless by something like http://umbrel.local:2349/api/some-endpoint, we could add the following to the app_proxy container's environment variables to whitelist just the /api/* route:

PROXY_AUTH_WHITELIST: "/api/*"

In order for existing Paperless-ngx installs to bring down this change, we need to update the app so that users see that an app update is available. I will make the necessary changes to this PR.

@nmfretz
Copy link
Contributor

nmfretz commented Jul 22, 2024

Updated Paperless to latest version and tested.

@nmfretz nmfretz merged commit 1a8e0c9 into getumbrel:master Jul 22, 2024
1 check failed
@nmfretz nmfretz changed the title Ignore Proxy auth for usage with apps Paperless-ngx: Ignore Proxy auth for usage with apps Jul 22, 2024
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.

2 participants