trailpack-greenlock

0.2.2 • Public • Published

trailpack-greenlock

📦 Letsencrypt (greenlock) Trailpack for Trails

Configuration

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

Be sure to have trailpack-express installed and configured.

Here is a very simple example:

module.exports = {
  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 trailpack under config/main.js

// config/main.js
module.exports = {
  // ...
  packs: [
    require('trailpack-core'),
    require('trailpack-router'),
    require('trailpack-express'),
    require('trailpack-greenlock')
  ]
}

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.

License

MIT

Dependents (1)

Package Sidebar

Install

npm i trailpack-greenlock

Weekly Downloads

1

Version

0.2.2

License

MIT

Unpacked Size

10.2 kB

Total Files

6

Last publish

Collaborators

  • jaumard