document pocketbase SSE authentication solution #1749
McNull
started this conversation in
Feature requests
Replies: 0 comments
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.
I had some issues setting up upsnap behind nginx proxy manager (reverse proxy). Authentication fails silently in the ui (network tab shows details). This has to do with the use of Server-Sent Events (SSE) in PocketBase, which is used for auth-refresh and some installer flows. The reverse proxy needs to forward the correct headers and disable buffering to allow SSE to work properly.
To fix this simply add this as custom config to the proxy host entry:
This will allow the SSE connection to pass through the reverse proxy without being broken, and authentication will work as expected.
Since NPM is quite popular, maybe this should be added to the upsnap documentation to help others avoid the same issue.
All reactions