do-nginx-domains
v0.0.25
Published
Manage digital ocean domains inside an ubuntu LEMP dropplet. This tool can register new domains in digital ocean, create nginx config, generate cerbot and create a folder to work
Downloads
9
Readme
do-nginx-domains
Manage digital ocean domains inside an ubuntu LEMP dropplet. This tool can register new domains in digital ocean, create nginx config, generate cerbot and create a folder to work
Usage
$ npm install -g do-nginx-domains
$ domains COMMAND
running command...
$ domains (-v|--version|version)
do-nginx-domains/0.0.24 linux-x64 node-v10.19.0
$ domains --help [COMMAND]
USAGE
$ domains COMMAND
...
Commands
domains add DOMAIN
Add a new domain to Digital Ocean Nginx dropplet
USAGE
$ domains add DOMAIN
ARGUMENTS
DOMAIN name to configure
OPTIONS
-n, --root=root root folder for this domain (/var/www/__domain__) (opcional)
DESCRIPTION
...
- Create a new domain in digital ocean
- Add domain records
- Create domain nginx configuration in sites-available and link that file into sites-enabled
- Generate a ssl certificate using cerbot (needs to be installed in your system)
- Restart nginx
See code: src/commands/add.js
domains help [COMMAND]
display help for domains
USAGE
$ domains help [COMMAND]
ARGUMENTS
COMMAND command to show help for
OPTIONS
--all see all commands in CLI
See code: @oclif/plugin-help