Giter Site home page Giter Site logo

bwalia / diycdn Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 5.77 MB

License: Apache License 2.0

HTML 2.89% Dockerfile 0.98% Shell 27.91% HCL 8.35% CSS 12.51% PHP 1.86% Lua 5.44% Python 7.49% C 10.16% Perl 11.23% JavaScript 0.95% Ruby 1.41% VCL 0.10% Go 8.72%

diycdn's Introduction

Setup a POP in AWS

Note default instance size is t2.nano for openresty but if you are using Varnish to cache content then it is advised to use memory optimised instances start with z1d.large

export AWS_ACCESS_KEY_ID=OBBTAIN AWS ACCESS KEY ID WITH APPROPRIATE ACCESS export AWS_SECRET_ACCESS_KEY=OBBTAIN AWS SECRET ACCESS KEY WITH APPROPRIATE ACCESS export AWS_DEFAULT_REGION=eu-west-2

Or

AWS_ACCESS_KEY_ID=OBBTAIN AWS ACCESS KEY ID WITH APPROPRIATE ACCESS AWS_SECRET_ACCESS_KEY=OBBTAIN AWS SECRET ACCESS KEY WITH APPROPRIATE ACCESS AWS_DEFAULT_REGION=eu-west-2

To create a POP

./pop_manager.sh "your_ssh_private_key_to_access_ec2s" "create" "user ssh rsa pub key to ssh into machines" "DiyCDN cloud cert is not set" "DiyCDN cloud cert is not set" "DiyCDN cloud key is not set"

Example params above ./pop_manager.sh ~/.ssh/id_rsa create ~/.ssh/id_rsa.pub "tls_cert_dummy" "tls_cert_key_dummy"

replace your_ssh_private_key_to_access_ec2s with $(cat path to private key) following the example below:

Other parameters of interests

type of instance in AWS example t2.nano
no of instances per region for the POP 1 by default per region. If you pass 2 means total instance in POP would be 4

./pop_manager.sh "$(cat ~/.ssh/id_rsa)"" "create" "DiyCDN cloud cert is not set" "DiyCDN cloud cert is not set" "DiyCDN cloud key is not set"

To destroy the POP

./pop_manager.sh "your_ssh_private_key_to_access_ec2s" "destroy"

This script use terraform to create openresty nginx pair for DiyCDN.cloud on AWS

Configuration options

diycdn's People

Contributors

bwaliatest avatar bwalia avatar visv20 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.