Skip to content

Quickly configure a domain name with an SSL Certificate using Let's Encrypt

License

Notifications You must be signed in to change notification settings

stiubhart/domain_config

Repository files navigation

Domain Config

Quickly configure a domain name .vhost file with an SSL Certificate using Let's Encrypt

Install

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

Dependencies

  • 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

Usage

domain_config/domain_config --domain=example.com
or to delete a domain:
domain_config/domain_config --domain=example.com --delete

Output - example

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

About

Quickly configure a domain name with an SSL Certificate using Let's Encrypt

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages