Quickly configure a domain name .vhost file with an SSL Certificate using Let's Encrypt
git clone git@github.com:stiubhart/domain_config.git
chmod +x domain_config/domain_config*
mv domain_config/ /usr/local/
mv /usr/local/domain_config/domain_config /usr/local/bin/
- Make sure to edit config.yaml to suit your needs at
/usr/local/domain_config/config.yaml
- Python3
- python3-yaml:
sudo apt install python3-yaml
- Certbot By Let's Encrypt:
sudo apt-get install certbot
yes N | certbot register --agree-tos -m your@email.com
domain_config/domain_config --domain=example.com
or to delete a domain:
domain_config/domain_config --domain=example.com --delete
Your domain is: example.com
Create domain
About to write VHost file for example.com
Vhost file created
Restarting Nginx...
Generating SSL Certificate
SSL Certificate generated
About to write VHost file for example.com
Vhost file created
Restarting Nginx...
Success!
Your web root is: /var/www/prefix.example.com/web/
https://example.com