@loque/server-tools
v2.0.0
Published
Install
Downloads
1
Readme
@loque/server-tools
Install
$ yarn global add @loque/server-tools
$ server-tools nginx configure
// self-signed keys
openssl req \
-subj '/CN=\*.domain.localhost' \
-x509 \
-newkey rsa:4096 \
-nodes \
-keyout nginx/selfsigned/privkey.pem \
-out nginx/selfsigned/fullchain.pem \
-days 365
// diffie-hellman group
openssl dhparam -out nginx/dhparam.pem 4096
https://x-team.com/blog/a-guide-to-creating-a-nodejs-command/