W
W
Wayne12121212021-06-16 19:00:59
Node.js
Wayne1212121, 2021-06-16 19:00:59

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

1 answer(s)
V
Vladimir Korotenko, 2021-06-16
@firedragon

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 question

Ask a Question

731 491 924 answers to any question