From df9a27ec206df13f9d7e8370eb4a040d0f1e7c65 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Mon, 5 Nov 2018 00:26:51 -0700 Subject: [PATCH] use approvedDomains for array, approveDomains for function --- README.md | 2 +- examples/demo.js | 2 +- examples/http2.js | 2 +- examples/quickstart.js | 2 +- examples/spdy.js | 2 +- examples/websockets.js | 2 +- test/greenlock.js | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index f6ae56e..1ec3d9c 100644 --- a/README.md +++ b/README.md @@ -165,7 +165,7 @@ require('greenlock-express').create({ // You MUST change these to valid domains // NOTE: all domains will validated and listed on the certificate -, approveDomains: [ 'example.com', 'www.example.com' ] +, approvedDomains: [ 'example.com', 'www.example.com' ] // You MUST NOT build clients that accept the ToS without asking the user , agreeTos: true diff --git a/examples/demo.js b/examples/demo.js index d597667..d9bee69 100644 --- a/examples/demo.js +++ b/examples/demo.js @@ -22,7 +22,7 @@ var greenlock = Greenlock.create({ // You MUST change these to valid domains // NOTE: all domains will validated and listed on the certificate -, approveDomains: [ 'example.com', 'www.example.com' ] +, approvedDomains: [ 'example.com', 'www.example.com' ] // You MUST have access to write to directory where certs are saved // ex: /home/foouser/acme/etc diff --git a/examples/http2.js b/examples/http2.js index cef6b2e..5b30c65 100644 --- a/examples/http2.js +++ b/examples/http2.js @@ -20,7 +20,7 @@ var greenlock = Greenlock.create({ // You MUST change these to valid domains // NOTE: all domains will validated and listed on the certificate -, approveDomains: [ 'example.com', 'www.example.com' ] +, approvedDomains: [ 'example.com', 'www.example.com' ] // You MUST have access to write to directory where certs are saved // ex: /home/foouser/acme/etc diff --git a/examples/quickstart.js b/examples/quickstart.js index 34ab710..e2c6ce0 100644 --- a/examples/quickstart.js +++ b/examples/quickstart.js @@ -18,7 +18,7 @@ require('../').create({ // You MUST change these to valid domains // NOTE: all domains will validated and listed on the certificate -, approveDomains: [ 'example.com', 'www.example.com' ] +, approvedDomains: [ 'example.com', 'www.example.com' ] // You MUST have access to write to directory where certs are saved // ex: /home/foouser/acme/etc diff --git a/examples/spdy.js b/examples/spdy.js index d9368a9..0af2470 100644 --- a/examples/spdy.js +++ b/examples/spdy.js @@ -22,7 +22,7 @@ var greenlock = Greenlock.create({ // You MUST change these to valid domains // NOTE: all domains will validated and listed on the certificate -, approveDomains: [ 'example.com', 'www.example.com' ] +, approvedDomains: [ 'example.com', 'www.example.com' ] // You MUST have access to write to directory where certs are saved // ex: /home/foouser/acme/etc diff --git a/examples/websockets.js b/examples/websockets.js index 08da28f..54a69da 100644 --- a/examples/websockets.js +++ b/examples/websockets.js @@ -19,7 +19,7 @@ var greenlock = Greenlock.create({ // You MUST change these to a valid email and domains , email: 'john.doe@example.com' -, approveDomains: [ 'example.com', 'www.example.com' ] +, approvedDomains: [ 'example.com', 'www.example.com' ] , agreeTos: true // Get notified of important updates and help me make greenlock better diff --git a/test/greenlock.js b/test/greenlock.js index 37b1973..c10e603 100644 --- a/test/greenlock.js +++ b/test/greenlock.js @@ -4,7 +4,7 @@ var greenlock = Greenlock.create({ version: 'draft-11' , server: 'https://acme-staging-v02.api.letsencrypt.org/directory' , agreeTos: true -, approveDomains: [ 'example.com', 'www.example.com' ] +, approvedDomains: [ 'example.com', 'www.example.com' ] , configDir: require('path').join(require('os').tmpdir(), 'acme') , app: require('express')().use('/', function (req, res) {