I am new with dokku and nginx. I want to serve images from my server, right now I have an application running in dokku serving me different json from a database. Right now I want to upload files and images and serve that images to the users.
- I could find some documentation about dokku persistent storage, to mount a local storage and redirect all the data from the application to that directory.
- My question right now is. How can I serve the image to the users? If I user http://app-name.host.com/storage/image-url.jpg it will do the trick?.
- Or should I use some configuration from the nginx file to serve the files directly from the server local storage?
Maybe someone could guide me in the right path because I can not find any clear information about that.
Thank you!
via Bruno
No comments:
Post a Comment