Skip to content

Instantly share code, notes, and snippets.

@wmertens
Last active January 5, 2019 15:51
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wmertens/40db93bbfeabd65b210c49af359d2569 to your computer and use it in GitHub Desktop.
Save wmertens/40db93bbfeabd65b210c49af359d2569 to your computer and use it in GitHub Desktop.
Example Let's Encrypt configuration for KeystoneJS
const keystone = require('keystone')
keystone.init({
name: 'myApp',
brand: 'My App',
port: process.env.PORT,
'ssl port': process.env.SSLPORT,
ssl: 'force',
letsencrypt: (process.env.NODE_ENV === 'production') && {
email: 'admin@myapp.com',
domains: ['www.myapp.com', 'myapp.com'],
register: true,
tos: true,
},
...
})
@zhanwenchen
Copy link

zhanwenchen commented Jan 5, 2019

IMPORTANT: per this thread, you must add "production: true" in the letsencrypt object.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment