A simple file-based management strategy for Greenlock
Go to file
AJ ONeal cdd1201bc6 v3.0.0: A file-based site manager for greenlock 2019-10-31 00:35:28 -06:00
tests v3.0.0: A file-based site manager for greenlock 2019-10-31 00:35:28 -06:00
.gitignore Initial commit 2019-10-21 21:47:37 +00:00
.prettierrc v0.6.1: bugfixes for greenlock express v3 2019-10-29 05:08:41 +00:00
LICENSE Initial commit 2019-10-21 21:47:37 +00:00
README.md v3.0.0: A file-based site manager for greenlock 2019-10-31 00:35:28 -06:00
manager.js v3.0.0: A file-based site manager for greenlock 2019-10-31 00:35:28 -06:00
package-lock.json v0.7.0: reduce scope of find() 2019-10-30 07:59:41 +00:00
package.json v3.0.0: A file-based site manager for greenlock 2019-10-31 00:35:28 -06:00

README.md

greenlock-manager-fs.js

A simple file-based management strategy for Greenlock v3

(to manage SSL certificates for sites)

Install

npm install --save greenlock-manager-fs@v3

Use with Greenlock

var greenlock = require('greenlock').create({
	// ...

	manager: 'greenlock-manager-fs',
	configFile: '~/.config/greenlock/manager.json'
});

Example config file

You might start your config file like this:

~/.config/greenlock/manager.json:

{
	"subscriberEmail": "jon@example.com",
	"agreeToTerms": true,
	"sites": [
		{
			"subject": "example.com",
			"altnames": ["example.com", "*.example.com"]
		}
	]
}

CLI Management (coming soon)

We're going to be adding some tools to greenlock so that you can do something like this to manage your sites and SSL certificates:

npx greenlock defaults --subscriber-email jon@example.com --agree-to-terms true
npx greenlock add --subject example.com --altnames example.com,*.example.com
npx greenlock renew --all