Skip to content

Latest commit

 

History

History
37 lines (31 loc) · 1.72 KB

README.md

File metadata and controls

37 lines (31 loc) · 1.72 KB

WDT

WDT is a Website Deployment Tool using Express, Nginx and SSL with Let's Encrypt.

It uses

  • n -- Node.js version manager
  • Express.js -- Web framework for Node.js
  • Nginx -- HTTP and reverse proxy server
  • pm2 -- Daemon Process Manager for Node.js
  • ufw -- program for managing a netfilter firewall
  • certbot -- client for the Let's Encrypt CA with a plugin for nginx
  • crontab -- cron job creator and scheduler

Getting Started

Installing

  1. Clone this repository
git clone https://github.com/trimclain/wdt
  1. Run the installation
make install

Setting up your domain

This part is required to setup the connection between your domain and your linux server. 0. Go to your domain name registrar's website (e.g. namecheap.com) and sign in.

  1. Go to Dashboard and choose your domain to manage
  2. Go to the Advanced DNS tab
  3. Add a new "A Record", as host add "@" (stands for root), as value add the ip of the server you will be hosting on, TTL leave as "automatic"
    NOTE: You can get the ip of your server with curl ifconfig.me
  4. Do the same for host "www"

Demo

Here's a demo showing full deployment of one of my projects. This was done after the configuration above.

demo.mp4