mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-10 10:11:46 +00:00
31 lines
587 B
TypeScript
31 lines
587 B
TypeScript
export enum AuthStrategy {
|
|
AUTH_AT_FIRST = 'AUTH_AT_FIRST',
|
|
NONE = 'NONE',
|
|
}
|
|
|
|
export interface APIServerConfig {
|
|
enabled: boolean;
|
|
hostname: string;
|
|
port: number;
|
|
authStrategy: AuthStrategy;
|
|
secret: string;
|
|
|
|
authorizedClients: string[];
|
|
useHttps: boolean;
|
|
certPath: string;
|
|
keyPath: string;
|
|
}
|
|
|
|
export const defaultAPIServerConfig: APIServerConfig = {
|
|
enabled: false,
|
|
hostname: '0.0.0.0',
|
|
port: 26538,
|
|
authStrategy: AuthStrategy.AUTH_AT_FIRST,
|
|
secret: Date.now().toString(36),
|
|
|
|
authorizedClients: [],
|
|
useHttps: false,
|
|
certPath: '',
|
|
keyPath: '',
|
|
};
|