1
0
mirror of https://github.com/xuthus83/pigallery2.git synced 2025-01-14 14:43:17 +08:00
pigallery2/common/config/private/IPrivateConfig.ts

40 lines
751 B
TypeScript
Raw Normal View History

2017-06-04 15:25:08 +02:00
export enum DatabaseType{
memory = 0, mysql = 1
2017-06-04 15:25:08 +02:00
}
export enum LogLevel {
error, warn, info, debug, verbose
}
export enum ThumbnailProcessingLib{
Jimp = 0,
gm = 1,
sharp = 2
2017-06-04 15:25:08 +02:00
}
export interface MySQLConfig {
host: string;
database: string;
username: string;
password: string;
2017-06-04 15:25:08 +02:00
}
export interface DataBaseConfig {
type: DatabaseType;
mysql?: MySQLConfig;
2017-06-04 15:25:08 +02:00
}
export interface ThumbnailConfig {
folder: string;
processingLibrary: ThumbnailProcessingLib;
qualityPriority: boolean;
2017-06-04 15:25:08 +02:00
}
2017-07-03 19:17:49 +02:00
export interface SharingConfig {
updateTimeout: number;
}
2017-06-04 15:25:08 +02:00
export interface ServerConfig {
port: number;
imagesFolder: string;
thumbnail: ThumbnailConfig;
database: DataBaseConfig;
enableThreading: boolean;
2017-07-03 19:17:49 +02:00
sharing: SharingConfig;
2017-06-04 15:25:08 +02:00
}