mirror of
https://github.com/xuthus83/pigallery2.git
synced 2024-11-03 21:04:03 +08:00
29 lines
553 B
TypeScript
29 lines
553 B
TypeScript
|
export enum DatabaseType{
|
||
|
memory = 0, mysql = 1
|
||
|
}
|
||
|
export enum LogLevel {
|
||
|
error, warn, info, debug, verbose
|
||
|
}
|
||
|
|
||
|
export interface MySQLConfig {
|
||
|
host: string;
|
||
|
database: string;
|
||
|
username: string;
|
||
|
password: string;
|
||
|
}
|
||
|
export interface DataBaseConfig {
|
||
|
type: DatabaseType;
|
||
|
mysql?: MySQLConfig;
|
||
|
}
|
||
|
export interface ThumbnailConfig {
|
||
|
folder: string;
|
||
|
hardwareAcceleration: boolean;
|
||
|
}
|
||
|
|
||
|
export interface ServerConfig {
|
||
|
port: number;
|
||
|
imagesFolder: string;
|
||
|
thumbnail: ThumbnailConfig;
|
||
|
database: DataBaseConfig;
|
||
|
}
|