Coder Social home page Coder Social logo

project-10's Introduction

Project-10

LOAD BALANCER SOLUTION WITH NGINX AND SSL/TLS

Project Description

This project was a continuation of the previous project with the implementation of a load balancer and a registered domain name registered with SSL certificate, as shown in the project diagram;

Project Steps :

  1. spin up a virtual machine in AWS running Ubuntu version 20.04 LTS
  2. update /etc/hosts with webservers IP4 address from previous project
  3. installing nginx
  • sudo yum install nginx -y

  1. confirming nginx is running

  1. Editing the hosts file

  1. Updating nginx config file
  • sudo vi /etc/nginx/nginx.conf

  1. Registering domain with godaddy.com and updating the name server with A-record of Route53

  1. Assigning an Elastic IP address with nginx load balancer and associating it to the created domain name so it remains upon reboot

  2. updating nginx configuration file with domain

  1. Ensuring snapd service is running and Installing Certbot
  • sudo systemctl status snapd
  • sudo snap install --classic certbot

  1. requesting a certificate
  • sudo ln -s /snap/bin/certbot /usr/bin/certbot
  • sudo certbot --nginx

  1. Site registered with SSL certificate port 443 opened in security group of load balancer

  1. Renewing Certificate using dry-run
  • sudo certbot renew --dry-run

  1. Scheduling a cron job to automatically renew the licence of the certificate
  • crontab -e

  • updating the file with the command to renew certificates twice a day

    • */12 * * * root /usr/bin/certbot renew > /dev/null 2>&1

project-10's People

Contributors

teejay4u 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.