You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
AJ ONeal
bb8056acdc
|
4 vuotta sitten | |
---|---|---|
tests | 4 vuotta sitten | |
.gitignore | 4 vuotta sitten | |
.prettierrc | 5 vuotta sitten | |
LICENSE | 5 vuotta sitten | |
README.md | 4 vuotta sitten | |
manager.js | 4 vuotta sitten | |
package-lock.json | 4 vuotta sitten | |
package.json | 4 vuotta sitten |
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
Usage
npx greenlock init --manager greenlock-manager-fs --config-dir './greenlock.d'
Or, place this file in the root of your project:
.greenlockrc
:
{
"manager": { "module": "@greenlock/manager" },
"configDir": "./greenlock.d"
}
Example config file
You might start your config file like this:
./greenlock.d/config.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