maven-mirror-tool/types.ts
2024-08-15 17:33:37 +03:30

31 lines
544 B
TypeScript

type TProxy = {
protocol: 'http' | 'https' | 'socks5';
host: string;
port: number;
auth?: {
username: string;
password: string;
};
};
type TServer = {
name: string;
url: string;
fileTypes?: string[];
proxy?: string;
auth?: {
username: string;
password: string;
};
};
export interface IConfig {
PORT: number;
CACHE_DIR: string;
REPOSITORIES: TServer[];
DEFAULT_PATH: string;
LOG_REQUESTS?: boolean;
IGNORE_FILES?: string[];
VALID_FILE_TYPES?: string[];
PROXIES: { [K: string]: TProxy };
}