*export ssl manager
ci/woodpecker/push/woodpecker Pipeline was successful
Details
ci/woodpecker/push/woodpecker Pipeline was successful
Details
This commit is contained in:
parent
b57644836f
commit
9b9ff2118c
|
@ -14,7 +14,7 @@ import type Config from "@lumeweb/cfg";
|
||||||
import EventEmitter2 from "eventemitter2";
|
import EventEmitter2 from "eventemitter2";
|
||||||
import log from "../log.js";
|
import log from "../log.js";
|
||||||
import { get as getSwarm } from "./swarm.js";
|
import { get as getSwarm } from "./swarm.js";
|
||||||
import { get as getSSl } from "./ssl.js";
|
import { get as getSSl, SSLManager } from "./ssl.js";
|
||||||
import type { HDKey } from "micro-ed25519-hdkey";
|
import type { HDKey } from "micro-ed25519-hdkey";
|
||||||
|
|
||||||
let pluginAPIManager: PluginAPIManager;
|
let pluginAPIManager: PluginAPIManager;
|
||||||
|
@ -78,7 +78,7 @@ class PluginAPI extends EventEmitter2 {
|
||||||
return getHDKey();
|
return getHDKey();
|
||||||
}
|
}
|
||||||
|
|
||||||
get ssl() {
|
get ssl(): SSLManager {
|
||||||
return getSSl();
|
return getSSl();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@ import config from "../config.js";
|
||||||
|
|
||||||
export type SSLManagerRenewHandler = (domain: string) => Promise<boolean>;
|
export type SSLManagerRenewHandler = (domain: string) => Promise<boolean>;
|
||||||
|
|
||||||
class SSLManager {
|
export class SSLManager {
|
||||||
private _context?: tls.SecureContext;
|
private _context?: tls.SecureContext;
|
||||||
private _key?: Buffer;
|
private _key?: Buffer;
|
||||||
private _cert?: Buffer;
|
private _cert?: Buffer;
|
||||||
|
|
Loading…
Reference in New Issue