1
0
spogulis no https://github.com/therootcompany/greenlock-express.js.git synced 2024-11-16 17:28:59 +00:00

Update README.md

Šī revīzija ir iekļauta:
AJ ONeal 2016-02-15 18:29:23 -07:00
vecāks eedde9cea1
revīzija e6e38f3ada

Parādīt failu

@ -32,7 +32,9 @@ npm install --save letsencrypt-express
// Note: using staging server url, remove .testing() for production
var LEX = require('letsencrypt-express').testing();
function approveRegistration(hostname, cb) {
var lex = LEX.create({
configDir: require('os').homedir() + '/letsencrypt/etc'
, approveRegistration: function (hostname, cb) { // leave `null` to disable automatic registration
// Note: this is the place to check your database to get the user associated with this domain
cb(null, {
domains: [hostname]
@ -40,10 +42,6 @@ function approveRegistration(hostname, cb) {
, agreeTos: true
});
}
var lex = LEX.create({
configDir: require('os').homedir() + '/letsencrypt/etc'
, approveRegistration: approveRegistration // leave `null` to disable automatic registration
});
```