git clone https://github.com/appzic/root-nginx.git
cd root-nginx
docker compose up -d
First, go to your DNS provider and create an A Recode
for the domain or subdomain to point to the server's IP address.
Use following command to configure HTTP for the Nginx server:
sh rootnginx.sh init
And answer the questions
A few minutes later, go the https://www.whatsmydns.net/ website and check wether DNS are successfully propegated or not.
If DNS successfully propergated, use following command to run certbot and configure HTTPS for Nginx server:
sh rootnginx.sh ssl
And answer the questions
sh rootnginx.sh rp
And answer the questions
sh rootnginx.sh update