Tumblelog by Soup.io
Newer posts are loading.
You are at the newest post.
Click here to check if anything new just came in.
scalescale2

Rolling Your Own CDN - Build A 3 Continent CDN For $25 In 60 minutes

Picture
CDN
For a fun end of the week project, we thought we would roll our own CDN using Go GeoDNS, DigitalOcean, Docker and Nginx.
Step 1: Order a DNS instance from DigitalOcean.

We chose SFO and the 2nd smallest instance.

Nginx

Many of us setup DNS info to point here (equally NS1 and NS2 point here for ease of setup). These are A records.

ns1.deploy.io 192.241.224.116
ns2.release.io 192.241.224.116

Step 2: Install Docker and run with �coocood/geodns� image on the DNS example

See https://index.docker.io/u/coocood/geodns for detail.
Step 3: Order the particular CDN �edge� instances for Nginx via DigitalOcean.

We used the smallest instance. We setup DNS for this example using them:

test-sfo-do.set up.io 107.170.251.75 San Francisco $5/mo
test-jfk-do.set up.io 107.170.45.174 New You are able to $5/mo
test-sin-do.deploy.io 128.199.216.96 Singapore $5/mo
test-ams-do.deploy.io 188.226.185.173 Amsterdam $5/mo

Don't be the product, buy the product!

Schweinderl