How to setup the location to match static files #1897
Unanswered
cianiandreadev
asked this question in
Q&A
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all.
I have a service composed by multiple dockers.
One of it is a nodejs server and it's mapped to the
/api
path in nginx-proxy-manager as following:While the frontend is configured like this:
EVERYTHING works correctly (both frontend and backend) and the apis are all correctly working.
The Problem is regarding static files served by the backend.
When I upload a file using a POST to the
/api
(trough a multipart-form-data) the file is PERFECTLY received and stored by the backend, while when I GET the file (the path is like.../api/upload/myfile.png
) I receive a 404.I tested the backend locally without nginx-proxy-manger and it works without problem (POST and GET), but as soon as I put nginx-proxy-manager in front of it the GET is returning 404. I think this could be caused by the
.png
extension at the end, therefore I think it could be solved by using a regular expression that matches all the routes that start with/api
.Can someone please help me?
Thanks a lot in advance 🙂
Beta Was this translation helpful? Give feedback.
All reactions