From e6e38f3ada0d08b158f4f50d218d742469a56448 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Mon, 15 Feb 2016 18:29:23 -0700 Subject: [PATCH] Update README.md --- README.md | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 10fbdd2..d98088c 100644 --- a/README.md +++ b/README.md @@ -32,18 +32,16 @@ npm install --save letsencrypt-express // Note: using staging server url, remove .testing() for production var LEX = require('letsencrypt-express').testing(); -function approveRegistration(hostname, cb) { - // Note: this is the place to check your database to get the user associated with this domain - cb(null, { - domains: [hostname] - , email: 'CHANGE_ME' // user@example.com - , agreeTos: true - }); -} - var lex = LEX.create({ configDir: require('os').homedir() + '/letsencrypt/etc' -, approveRegistration: approveRegistration // leave `null` to disable automatic registration +, 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] + , email: 'CHANGE_ME' // user@example.com + , agreeTos: true + }); + } }); ```