These instructions should work for Debinan/Ubuntu
# Install nginx
apt install nginx
# run nginx (debain/ubuntu)
systemctl start nginx
#########Do this first###########
#Setup DNS to point to your webserver IP (Route53, Google Domains, etc)
#Setup Inbound Port forwarding on your firewall for port 80 to point to your nginx web server (This is done in your Router/Firewall)
######Setup a basic config in your nginx.conf##########
vi /etc/nginx.conf
server {
server_name example.com;
}
#Test to make sure you can hit the sample nginx page at the domain that you setup above
curl http://example.com # insert your domain name here or get one from duckdns.org
# Setup Certbot Certbot Instructions | Certbot (eff.org)
sudo snap install core; sudo snap refresh core
sudo snap install --classic certbot
sudo ln -s /snap/bin/certbot /usr/bin/certbot
sudo certbot --nginx
References I used:
TCP and UDP Load Balancing | NGINX Plus
Nginx Reverse Proxy: How to Setup and Configure | PhoenixNAP KB
https://certbot.eff.org/instructions?ws=nginx&os=debianbuster
No comments:
Post a Comment