mirror of
https://github.com/immich-app/immich.git
synced 2025-05-30 19:54:52 -04:00
50 lines
1.0 KiB
TypeScript
50 lines
1.0 KiB
TypeScript
import { ImmichEnvironment, ImmichWorker, LogLevel } from 'src/enum';
|
|
import { VectorExtension } from 'src/interfaces/database.interface';
|
|
|
|
export const IConfigRepository = 'IConfigRepository';
|
|
|
|
export interface EnvData {
|
|
port: number;
|
|
environment: ImmichEnvironment;
|
|
configFile?: string;
|
|
logLevel?: LogLevel;
|
|
|
|
buildMetadata: {
|
|
build?: string;
|
|
buildUrl?: string;
|
|
buildImage?: string;
|
|
buildImageUrl?: string;
|
|
repository?: string;
|
|
repositoryUrl?: string;
|
|
sourceRef?: string;
|
|
sourceCommit?: string;
|
|
sourceUrl?: string;
|
|
thirdPartySourceUrl?: string;
|
|
thirdPartyBugFeatureUrl?: string;
|
|
thirdPartyDocumentationUrl?: string;
|
|
thirdPartySupportUrl?: string;
|
|
};
|
|
|
|
database: {
|
|
skipMigrations: boolean;
|
|
vectorExtension: VectorExtension;
|
|
};
|
|
|
|
licensePublicKey: {
|
|
client: string;
|
|
server: string;
|
|
};
|
|
|
|
storage: {
|
|
ignoreMountCheckErrors: boolean;
|
|
};
|
|
|
|
workers: ImmichWorker[];
|
|
|
|
nodeVersion?: string;
|
|
}
|
|
|
|
export interface IConfigRepository {
|
|
getEnv(): EnvData;
|
|
}
|