refactor(api): drop Bunny for pluggable cache purge adapters (#2742)

This commit is contained in:
Hampus authored and GitHub committed 2026-09-13 20:28:56 +02:00
1 parent 84dcf6b8a8
commit ca7ddd9272
45 files changed
+929 -977

No files matched your search

+11 -5
View File
@@ -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;