0.0.4 • Published 5 years ago

webtinkle v0.0.4

Weekly downloads
9
License
GPL-3.0
Repository
github
Last release
5 years ago

WebTinkle

NGINX configuration generator tool

/!\ Currently, WebTinkle is in an early stage and must not be used in production /!\

Install

npm i -g webtinkle

How to use

Templates

The most important part of WebTinkle is templating. Templates allows to make an NGINX configuration adapted to the needs. WebTinkle doesn't contains any templates himself, but provides a command to download templates, the webtinkle install command:

webtinkle install <templateName>

It will download the specified template from this GitHub repository and install those automatically.

If you want to remove an installed template, use webtinkle uninstall command:

webtinkle uninstall <templateName>

Website

To add a website to NGINX configs, use the webtinkle add command:

webtinkle add <domain> -t <templateName>

To remove a website from NGINX configs, use the webtinkle remove command:

webtinkle remove <domain>

Troubleshooting

nginx.configPath must point to a directory

It means that your NGINX configuration path is not a valid folder. nginx.configPath must point to a path where he would be able to put the NGINX configurations. In most computers, this folder is located at /etc/nginx/conf.d/, but sometimes, it must point to a different folder.

To change the location where WebTinkle put his configurations, you must do the command:

webtinkle config nginx.configPath <yourPath>