mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-17 21:15:32 +09:00
refactor(api): drop Bunny for pluggable cache purge adapters (#2742)
This commit is contained in:
1 parent
84dcf6b8a8
commit
ca7ddd9272
45 files changed
+929
-977
No files matched your search
@@ -1,6 +1,7 @@
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
import type {WorkerTaskName} from '@app/api/worker/WorkerLaneConfig';
|
||||
import type {CachePurgeAdapterName} from '@fluxer/config/src/MasterConfig';
|
||||
import type {ResolvedDownloadsProvider} from '@fluxer/config/src/S3DownloadsProvider';
|
||||
|
||||
export type APIWorkerMode = 'all_lanes' | 'single_lane' | 'single_task';
|
||||
@@ -14,6 +15,15 @@ export interface PushProviderAppConfig {
|
||||
projectId?: string;
|
||||
}
|
||||
|
||||
export interface APICachePurgeConfig {
|
||||
adapter: CachePurgeAdapterName;
|
||||
http: {
|
||||
endpoint: string;
|
||||
token: string;
|
||||
timeoutMs: number;
|
||||
};
|
||||
}
|
||||
|
||||
interface APIGeoipFilesystemConfig {
|
||||
mode: 'filesystem';
|
||||
maxmindDbPath?: string;
|
||||
@@ -262,11 +272,7 @@ export interface APIConfig {
|
||||
};
|
||||
legacyPrices?: Record<string, Array<string> | undefined>;
|
||||
};
|
||||
bunny: {
|
||||
purgeEnabled: boolean;
|
||||
apiKey?: string;
|
||||
pullZoneId?: number;
|
||||
};
|
||||
cachePurge: APICachePurgeConfig;
|
||||
clamav: {
|
||||
enabled: boolean;
|
||||
host: string;
|
||||
|
||||
Reference in new issue
Block a user