mirror of
https://github.com/hexboy/maven-mirror-tool.git
synced 2025-04-07 15:29:09 +00:00
31 lines
547 B
TypeScript
31 lines
547 B
TypeScript
interface TProxy {
|
|
protocol: 'http' | 'https' | 'socks5';
|
|
host: string;
|
|
port: number;
|
|
auth?: {
|
|
username: string;
|
|
password: string;
|
|
};
|
|
}
|
|
|
|
interface 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: Record<string, TProxy>;
|
|
}
|