Answer the question
In order to leave comments, you need to log in
How to send an image to the client as a link from a node that is in a docker container?
Hello!
Front on vue, back on node. Wrapped up in docker-compose.
The essence of the problem: after sending the image from the front to the back = I process the express-fileupload and move the image to /public/images.
How to give the image address to the front in the format localhost:9000/public/images/photo.png?
I will be very grateful
Answer the question
In order to leave comments, you need to log in
Add your location to nginx and correct the inserts
. That is, you should get something like
Host.com/images/123
Here, of course, what rule you will write
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question