You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Token authentication doesn't work for media files behind nginx proxy #1937
@lettore it took some doing but I have managed to reproduce your issue. I'm assuming you're running behind a nginx proxy, which is forwarding auth requests for media files to the inventree server.
There was a silly bug which prevented token-based auth from working. See #1938 for a fix which should be merged soon.
@lettore it took some doing but I have managed to reproduce your issue. I'm assuming you're running behind a nginx proxy, which is forwarding auth requests for media files to the inventree server.
There was a silly bug which prevented token-based auth from working. See #1938 for a fix which should be merged soon.
Well I'm using the Ngnix proxy container as your docker compose file, in front of that I use Traefik as https proxy.
Not sure if this can be the problem.
Activity
SchrodingersGat commentedon Aug 10, 2021
@lettore it took some doing but I have managed to reproduce your issue. I'm assuming you're running behind a nginx proxy, which is forwarding auth requests for media files to the inventree server.
There was a silly bug which prevented token-based auth from working. See #1938 for a fix which should be merged soon.
lettore commentedon Aug 10, 2021
Well I'm using the Ngnix proxy container as your docker compose file, in front of that I use Traefik as https proxy.
Not sure if this can be the problem.
SchrodingersGat commentedon Aug 10, 2021
The issue is (I believe) on the server side - the token auth for
/media/files is currently not working correctlySchrodingersGat commentedon Aug 10, 2021
Please pull down latest master and see if the problem is resolved on your end.
lettore commentedon Aug 10, 2021
Solved
SchrodingersGat commentedon Aug 10, 2021
Thanks for letting me know @lettore