Nginx - authentication on all but the download links #107
andymarden
started this conversation in
General
Replies: 1 comment
-
No - still doesn't work. My browser had cached files but after clearing cache I get: Fatal error: failed loading /resources/themes/bootstrap/5/bootstrap.bundle.min.js But luckily it was simple fix - adding /resources to the no-auth section. Have modified the original post to reflect. It now works with cleared cache done beforehand. |
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
-
This is, I think a common scenario:
That should be relatively easy in nginx as a reverse proxy, but there is an issue in that there is an internal redirect in the service to host/com?wtd=linkid
Nginx cannot simply tell if a uri has query parameters and this gets a bit nasty with nginx's strange limitations on consditions etc.
Since this took me a while to work through, I though I would share in case anyone else is in the same boat. Note that this would be solved very simply in the back end by using a /xxx/wtd=linkid instead. Issue raised at #106 which would simplify things.
Making use of the fact that host.com redirects to /share-create, this is works (there is probably duplication of some of the set directives and it could be simplified but it works:
Beta Was this translation helpful? Give feedback.
All reactions