By Lgmcben
Hi,
First, let me admit that I posted a short question about this on the Floating IP tutorial. But that thread seems inactive right now. Allow me to ask again in detail here.
I’m building a marketplace website where user can post things for sale. I came from a shared hosting so I’m still learning my way around VPS.
After I read about Digital Ocean floating IP, I’m trying to setup high availability using…
I’ve read through Floating IP tutorial but one thing is still unclear.
— Question — Where to store media files like videos or user-uploaded images?
If one image is in Django droplet #1 but not in #2 then this setup is not possible.
All tutorials mentioned moving database to separate droplet. But no one says anything about media files at all. (Or the media files should stay on a database droplet?)
Thanks in advance!
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
You can upload the media/static files to a separate droplet (you can also upload it to your database droplet, but I will recommend a separate droplet). Generally you would create a subdomain such as media.example.com and point it to your media server. When you are linking the media, you can use media.example.com/file.png for example. :)
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.