Skip to content

VladStepanov/le-store-mongoz

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

le-store-mongoz

CircleCI

This module implements a dead-simple, zero-dependency mongodb store for greenlock. This allows you to persist your Let's Encrypt data in mongo for automated TLS certificate issuance and use.

le-store-mongoz does not handle database connections itself; you must pass in Collection objects you acquire from the mongodb driver.

Example

// once you've connected to mongodb and have a `Db` from `MongoClient`

Greenlock.create({
    …
    store: require('le-store-mongoz').create(
        db.collection('le-accounts'),
        db.collection('le-certs')
    )
});

API

create(accountCollection, certCollection)

Creates a greenlock store.

  • accountCollection - a mongodb Collection where your Let's Encrypt credentials will be stored.
  • certCollection - a mongodb Collection where your Let's Encrypt certificates and keys will be stored.

Why?

There are other le-store-mongo* packages available; why another?

As of late 2019, other modules implementing a greenlock mongodb store brought in as many as hundreds of dependencies and/or were totally undocumented. As both of these properties are distasteful, I was compelled to create another.

About

Greenlock store for mongodb

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%