Last active
January 5, 2019 15:51
-
-
Save wmertens/40db93bbfeabd65b210c49af359d2569 to your computer and use it in GitHub Desktop.
Example Let's Encrypt configuration for KeystoneJS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: '[email protected]', | |
domains: ['www.myapp.com', 'myapp.com'], | |
register: true, | |
tos: true, | |
}, | |
... | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
IMPORTANT: per this thread, you must add "production: true" in the letsencrypt object.