Skip to content

teejay4u/Project-10

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published