From 769fe3008cf5c19b837e8a8343bb074cf59ee1b9 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Fri, 20 Apr 2018 08:53:56 +0000 Subject: [PATCH] note removal of static values --- examples/normal.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/examples/normal.js b/examples/normal.js index be27040..d6244d1 100644 --- a/examples/normal.js +++ b/examples/normal.js @@ -24,13 +24,18 @@ require('../').create({ // You MUST change 'acme-staging-v02' to 'acme-v02' in production , server: 'https://acme-staging-v02.api.letsencrypt.org/directory' // staging +// The previous 'simple' example set these values statically, +// but this example uses approveDomains() to set them dynamically +//, email: 'none@see.note.above' +//, agreeTos: false + // approveDomains is the right place to check a database for // email addresses with domains and agreements and such , approveDomains: approveDomains // You MUST have access to write to directory where certs are saved - // ex: /home/foouser/acme/etc -, configDir: require('path').join(require('os').homedir(), 'acme', 'etc') + // ex: /etc/greenlock/ +, configDir: '/tmp/etc/greenlock' , app: app