fix(dependencies): Update @push.rocks/smartacme to ^7.3.2; replace DisklessHttp01Handler with Http01MemoryHandler in Port80Handler
This commit is contained in:
		| @@ -10,21 +10,6 @@ import type { | ||||
|   IAcmeOptions | ||||
| } from '../common/types.js'; | ||||
| // (fs and path I/O moved to CertProvisioner) | ||||
| // ACME HTTP-01 challenge handler storing tokens in memory (diskless) | ||||
| class DisklessHttp01Handler { | ||||
|   private storage: Map<string, string>; | ||||
|   constructor(storage: Map<string, string>) { this.storage = storage; } | ||||
|   public getSupportedTypes(): string[] { return ['http-01']; } | ||||
|   public async prepare(ch: any): Promise<void> { | ||||
|     this.storage.set(ch.token, ch.keyAuthorization); | ||||
|   } | ||||
|   public async verify(ch: any): Promise<void> { | ||||
|     return; | ||||
|   } | ||||
|   public async cleanup(ch: any): Promise<void> { | ||||
|     this.storage.delete(ch.token); | ||||
|   } | ||||
| } | ||||
|  | ||||
| /** | ||||
|  * Custom error classes for better error handling | ||||
| @@ -137,7 +122,7 @@ export class Port80Handler extends plugins.EventEmitter { | ||||
|         accountEmail: this.options.accountEmail, | ||||
|         certManager: new plugins.smartacme.certmanagers.MemoryCertManager(), | ||||
|         environment: this.options.useProduction ? 'production' : 'integration', | ||||
|         challengeHandlers: [ new DisklessHttp01Handler(this.acmeHttp01Storage) ], | ||||
|         challengeHandlers: [ new plugins.smartacme.handlers.Http01MemoryHandler() ], | ||||
|         challengePriority: ['http-01'], | ||||
|       }); | ||||
|       await this.smartAcme.start(); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user