GithubHelp home page GithubHelp logo

linode-nginx's Introduction

What it does

  • Terraform creates VM and ansible vars/inventory, adds public ssh key (~/.ssh/id_rsa.pub) to authorized_keys on VM.
  • Ansible role provision provisions Linode node.
  • Ansible role webserver install nginx and opens necessary ports. Replaces default site with basic HTML site.
  • Ansible role certbot install configures pip env and installs and runs certbot pip package to enable HTTPS with lets encrypt.
  • Python script in configureDNS adds linode instance IP to cloudflare. (type A record).
  • API keys stored with pass and using .envrc file (enviroment variables).

Variables to set

  • Domain in variables.tf file.
  • Linode node label in variables.tf file.
  • Domain in configureDNS/var.py(.example).
  • Linode node label in configureDNS/var.py(.example).
  • Cloudflare API key in .envrc file. Either using pass (preferred) or plain text.
  • Linode API key .envrc file. Either using pass (preferred) or plain text.

Linode key needs read access to IP's, read/write to Linodes and read to account. Cloudflare key needs read access to your domain zone and edit DNS of the zone.

I tried to have as little static variables that needs to be set as possible.

Links

Terraform Linode provider

Certbot pip

Python Cloudflare

linode-nginx's People

Contributors

accurateapplication avatar jacob577 avatar

Watchers

 avatar

Forkers

jacob577

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.