I want to serve websites in production and I get confused with some concepts. Actually, I have multiple Django (python frameworks) instances running in my localhost, that simulates multiples differents DYNAMIC websites: a blog and a coffee shop. And, I let you know, I have my css in a AWS S3 bucket.
Here I put my ideas to deploy my localhost websites to production. I need some correction in my architecture if needs one and the motive.
-
1) I want to buy a Droplet (DigitalOcean VPS) and install inside it Nginx and my apps, and use Nginx to link the differents Django instances.
-
2) Connect that Droplet to Cloudflare, and use Cloudflare as CDN, Domain handler and DDOS protector.
-
3) Connect my static files in AWS S3 to Cloudflare.
Some extra questions:
-
A) I think I need to incorporate Docker, but, I need to Dockerize only my Django instances?, separately or all together?, with or without Nginx?
-
B) What means CDN when I use Cloudflare to link a domain to my Doker? Its referred to my site is cached and when I connect from Rusia this run a cached version near Rusia? And, in this case, CDN works for all types of files or only css, js and images (remember, I say I have dynamic websites, in my case my HTML change, but no my css)?
-
C) Is better connect my AWS S3 to Cloudflare or connect it to my Nginx instance?
Thanks!
Aucun commentaire:
Enregistrer un commentaire