Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 5916bd5

Browse files
feat: Added '@cocreate/acme' for dynamic ssl management
1 parent a63b450 commit 5916bd5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

‎src/server.js‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ class CoCreateLazyLoader {
1111
constructor(server, crud, files) {
1212
this.server = server
1313
this.wsManager = crud.wsManager
14+
this.acme = crud.wsManager.acme
1415
this.crud = crud
1516
this.files = files
1617
this.exclusion = { ...require.cache };
@@ -73,7 +74,8 @@ class CoCreateLazyLoader {
7374

7475
hosts[hostname] = organization
7576

76-
// TODO: handle ssl validation here and creation here
77+
await this.acme.checkCertificate(hostname, organization._id)
78+
7779
if (valideUrl.pathname.startsWith('/webhooks/')) {
7880
let name = req.url.split('/')[2]; // Assuming URL structure is /webhook/name/...
7981
if (this.modules[name]) {

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /