update example
This commit is contained in:
parent
287d0b6606
commit
c65539bf6c
|
@ -152,7 +152,7 @@ function approveDomains(opts, certs, cb) {
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
// handles acme-challenge and redirects to https
|
// handles acme-challenge and redirects to https
|
||||||
require('http').createServer(lex.middleware()).listen(80, function () {
|
require('http').createServer(lex.middleware(require('redirect-https')())).listen(80, function () {
|
||||||
console.log("Listening for ACME http-01 challenges on", this.address());
|
console.log("Listening for ACME http-01 challenges on", this.address());
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue