NOTE: Commands listed for Amazon Linux 2023 AMI

Go to https://www.duckdns.org/ and add a domain for the production EC2’s public IP .

It supports http:// appended with port :8080 after above step.

For HTTPS in production EC2:



1. Install EPEL + NGINX + Certbot (AL2023 way)

sudo dnf update -y
sudo dnf install -y nginx
sudo systemctl enable nginx
sudo systemctl start nginx

sudo dnf install -y certbot python3-certbot-nginx

amazon-linux-extras is gone in AL2023. Use dnf.


2. Configure Security Groups

Verify:


3. Configure NGINX + Redirect + Reverse Proxy

sudo nano /etc/nginx/conf.d/saasight.conf