mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-18 21:45:31 +09:00
fix: migrate gifs to klipy service (#1220)
This commit is contained in:
1 parent
99eedf6d1e
commit
4a741d8396
79 files changed
+3032
-1653
No files matched your search
@@ -219,15 +219,9 @@ function defaultConfig(): MasterConfig {
|
||||
port: 3310,
|
||||
fail_open: false,
|
||||
},
|
||||
gif: {
|
||||
provider: 'tenor',
|
||||
},
|
||||
klipy: {
|
||||
api_key: '',
|
||||
},
|
||||
tenor: {
|
||||
api_key: '',
|
||||
},
|
||||
youtube: {
|
||||
api_key: '',
|
||||
},
|
||||
@@ -399,7 +393,6 @@ function normalizeConfig(config: MasterConfig): MasterConfig {
|
||||
assertOneOf(config.integrations.email.provider, ['smtp', 'none'], 'FLUXER_EMAIL_PROVIDER');
|
||||
assertOneOf(config.integrations.captcha.provider, ['hcaptcha', 'turnstile', 'none'], 'FLUXER_CAPTCHA_PROVIDER');
|
||||
assertOneOf(config.integrations.search.engine, ['elasticsearch', 'meilisearch'], 'FLUXER_SEARCH_ENGINE');
|
||||
assertOneOf(config.integrations.gif.provider, ['tenor', 'klipy'], 'FLUXER_GIF_PROVIDER');
|
||||
assertOneOf(
|
||||
config.instance.abuse_policy.direct_contact_spam.action,
|
||||
['flag_spammer', 'suppress_delivery'],
|
||||
|
||||
@@ -259,15 +259,9 @@ export interface MasterConfig {
|
||||
port: number;
|
||||
fail_open: boolean;
|
||||
};
|
||||
gif: {
|
||||
provider: 'tenor' | 'klipy';
|
||||
};
|
||||
klipy: {
|
||||
api_key: string;
|
||||
};
|
||||
tenor: {
|
||||
api_key: string;
|
||||
};
|
||||
youtube: {
|
||||
api_key: string;
|
||||
};
|
||||
|
||||
@@ -278,9 +278,7 @@ const NAMED_FLUXER_ENV_OVERRIDES: Record<string, NamedEnvOverride> = {
|
||||
FLUXER_CLAMAV_HOST: {path: ['integrations', 'clamav', 'host']},
|
||||
FLUXER_CLAMAV_PORT: {path: ['integrations', 'clamav', 'port'], parse: parseEnvValue},
|
||||
FLUXER_CLAMAV_FAIL_OPEN: {path: ['integrations', 'clamav', 'fail_open'], parse: parseEnvValue},
|
||||
FLUXER_GIF_PROVIDER: {path: ['integrations', 'gif', 'provider']},
|
||||
FLUXER_KLIPY_API_KEY: {path: ['integrations', 'klipy', 'api_key']},
|
||||
FLUXER_TENOR_API_KEY: {path: ['integrations', 'tenor', 'api_key']},
|
||||
FLUXER_YOUTUBE_API_KEY: {path: ['integrations', 'youtube', 'api_key']},
|
||||
FLUXER_BUNNY_PURGE_ENABLED: {path: ['integrations', 'bunny', 'purge_enabled'], parse: parseEnvValue},
|
||||
FLUXER_BUNNY_API_KEY: {path: ['integrations', 'bunny', 'api_key']},
|
||||
|
||||
Reference in new issue
Block a user