@@ -10,7 +10,6 @@ const hosts = {};
1010class CoCreateLazyLoader {
1111 constructor ( server , crud , files ) {
1212 this . server = server
13- // this.acme = server.acme
1413 this . wsManager = crud . wsManager
1514 this . crud = crud
1615 this . files = files
@@ -47,14 +46,13 @@ class CoCreateLazyLoader {
4746 } ) ;
4847 }
4948
50- this . server . https . on ( 'request' , ( req , res ) => this . request ( req , res , 'HTTPS' ) )
51- this . server . http . on ( 'request' , ( req , res ) => this . request ( req , res , 'HTTP' ) )
49+ this . server . https . on ( 'request' , ( req , res ) => this . request ( req , res ) )
50+ this . server . http . on ( 'request' , ( req , res ) => this . request ( req , res ) )
5251
5352 }
5453
55- async request ( req , res , protocol ) {
54+ async request ( req , res ) {
5655 try {
57- console . log ( 'server' , protocol )
5856 const valideUrl = new URL ( `http://${ req . headers . host } ${ req . url } ` ) ;
5957 const hostname = valideUrl . hostname ;
6058
@@ -84,8 +82,6 @@ class CoCreateLazyLoader {
8482
8583 hosts [ hostname ] = organization
8684
87- // await this.acme.checkCertificate(hostname, organization._id, req.url)
88-
8985 if ( valideUrl . pathname . startsWith ( '/webhooks/' ) ) {
9086 let name = req . url . split ( '/' ) [ 2 ] ; // Assuming URL structure is /webhook/name/...
9187 if ( this . modules [ name ] ) {
0 commit comments