Closed zsteinkamp closed 1 year ago
njs_acme_server_names
npm run test:unit
A bad hostname will cause the following log output:
njs-acme-nginx-1 | 2023/07/18 18:33:43 [error] 42#42: *1 js: njs-acme: [utils] Invalid hostname(s) in `njs_acme_server_names` detected: *.nginx.com njs-acme-nginx-1 | 2023/07/18 18:33:43 [error] 42#42: *1 js exception: Error: unhandled promise rejection: Error: Invalid hostname(s) in `njs_acme_server_names` detected: *.nginx.com, client: 172.24.0.1, server: proxy.nginx.com, request: "GET /acme/auto HTTP/1.1", host: "localhost:8000" njs-acme-nginx-1 | 172.24.0.1 - - [18/Jul/2023:18:33:43 +0000] "GET /acme/auto HTTP/1.1" 500 177 "-" "curl/7.88.1"
Before creating a PR, run through this checklist and mark each as complete.
CONTRIBUTING
README.md
CHANGELOG.md
Rebased against origin/main and updated the commit comment to be conventional.
Proposed changes
njs_acme_server_names
) validation with a hard fail (Implements #15)npm run test:unit
in the node container in dev to run unit tests.A bad hostname will cause the following log output:
Checklist
Before creating a PR, run through this checklist and mark each as complete.
CONTRIBUTING
documentREADME.md
andCHANGELOG.md
)