Skip to content

Commit bd25322

Browse files
committed
server-ssl.js
/root │ ├── /error │ ├── 404.html │ └── 500.html │ ├── /ssl │ ├── /openssl │ ├── /module │ │ ├── /crypt │ │ ├── /jose │ │ └── lets-encrypt-acme-client.js │ │ │ ├── acmeKeys │ ├── private-key.pem │ └── certificate.pem │ └── ssl.js │ ├── /website │ └── index.html <---- Your website goes here │ ├── node.exe ├── server-ssl.js └── start-windows.bat
1 parent 72e71ea commit bd25322

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ The certificates will be changed automatically when they are updated, you don't
6363
| `--domains=` | Domains to generate certificates for, this can not include wild cards, this should be an array. eg. `--domains=['www.ssl.boats','ssl.boats']` |
6464
| `--generateAnyway` | Certificates should always be generated when the server starts, this could get you rate limited, maybe use `--staging` |
6565
| `--staging` | The `Lets Encrypt!` staging server should be used instead of production |
66-
| `--autoRestart` | You can restart the server after certificates are generated (optional) |
66+
| `--autoRestart` | Restart the server after certificates are generated, firing a callback to notify of the restart (not required) |
6767

6868
```
6969
./start-windows.bat --letsEncrypt --domains=['www.ssl.boats','ssl.boats']

server-ssl.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ createServerHTTP((req, res) => {
5656
&& console.error(`${S_SSL.optPortHttp}${S_SSL.IN_USE}`)).listen(S_SSL.optPortHttp, () => console.log(`${S_SSL.STARTED_HTTP}${S_SSL.optPort}`));
5757

5858
S_SSL.loadLetsEncryptDaemon(__sslFolder, // Lets Encrypt! ACME Daemon
59-
() => { // Restart Callback
59+
() => { // Restart Callback, use --autoRestart
6060
console.log("Restarting Soon");
6161
}, 30, // Restart Seconds (number of callbacks)
6262
() => { // Update Certificates Callback

0 commit comments

Comments
 (0)