Fix the Letâs Encrypt example in the README #5
Loadingâ¦
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The example under âAt hostname with automatically-provisioned Letâs Encrypt certificatesâ (README.md, lines 121 to 135) has two errors:
import os form 'os'is a syntax error. It should beimport os from 'os'.optionsbut never passes it tocreateServer(). Withoutoptions.domains,createServer()uses locally-trusted certificates, so the example never provisions Letâs Encrypt certificates. The paragraph after the example says to passoptionsas the first argument:https.createServer(options, (request, response) => { ⦠}).The paragraph on line 141 also needs a full stop after the Auto Encrypt link.