feat(api-server): Add HTTPS support and custom certificate configuration (#3874)

This commit is contained in:
MohanadAhmed
2025-12-19 09:10:12 +02:00
committed by GitHub
parent b1d2112bfc
commit 58a19cdaa2
5 changed files with 103 additions and 11 deletions

View File

@ -11,6 +11,9 @@ export interface APIServerConfig {
secret: string;
authorizedClients: string[];
useHttps: boolean;
certPath: string;
keyPath: string;
}
export const defaultAPIServerConfig: APIServerConfig = {
@ -21,4 +24,7 @@ export const defaultAPIServerConfig: APIServerConfig = {
secret: Date.now().toString(36),
authorizedClients: [],
useHttps: false,
certPath: '',
keyPath: '',
};