@fabrix/spool-greenlock
TypeScript icon, indicating that this package has built-in type declarations

1.6.0 • Public • Published

spool-greenlock

📦 Letsencrypt (greenlock) Spool for Fabrix

Gitter NPM version Build Status Test Coverage Dependency Status Follow @FabrixApp on Twitter

Configuration

You can configure letsencrypt under the file config/greenlock.ts (be sure it's added under config/index.ts or it will not be loaded)

Be sure to have spool-express installed and configured.

Here is a very simple example:

export const greenlock = {
  server: 'staging', // Set to https://acme-v01.api.letsencrypt.org/directory in production
  email: 'john.doe@example.com',
  agreeTos: true,
  approvedDomains: ['example.com', 'www.example.com']
}

More information about the configuration possibilities here: https://git.daplie.com/Daplie/node-greenlock

Usage

Add the spool under config/main.ts

// config/main.ts
export const main = {
  // ...
  spools: [
    require('spool-router').RouterSpool,
    require('spool-express').ExpressSpool,
    require('spool-greenlock').GreenlockSpool
  ]
}

Letsencrypt can work only if you use 443 as secure port and 80 as default port so be sure to set them correctly

Contributing

We love contributions! Please check out our Contributor's Guide for more information on how our projects are organized and how to get started.

Readme

Keywords

Package Sidebar

Install

npm i @fabrix/spool-greenlock

Homepage

fabrix.app

Weekly Downloads

0

Version

1.6.0

License

MIT

Unpacked Size

9.34 kB

Total Files

13

Last publish

Collaborators

  • scottbwyatt