Skip to content

Commit

Permalink
fix: send req.url to acme
Browse files Browse the repository at this point in the history
  • Loading branch information
frankpagan committed Dec 30, 2023
1 parent fb1a1b7 commit 66715f9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ class CoCreateLazyLoader {
})

if (!org || !org.object || !org.object[0]) {
// TODO: hostNotFound is not defined
if (!hostNotFound)
hostNotFound = await getDefaultFile('/hostNotFound.html')
return sendResponse(hostNotFound.object[0].src, 404, { 'Content-Type': 'text/html', 'storage': organization.storage })
Expand All @@ -77,7 +78,7 @@ class CoCreateLazyLoader {

hosts[hostname] = organization

await this.acme.checkCertificate(hostname, organization._id)
await this.acme.checkCertificate(hostname, organization._id, req.url)

if (valideUrl.pathname.startsWith('/webhooks/')) {
let name = req.url.split('/')[2]; // Assuming URL structure is /webhook/name/...
Expand Down

0 comments on commit 66715f9

Please sign in to comment.