feat(api): add IP ban exemptions (#1448)

This commit is contained in:
Hampus authored and GitHub committed 2026-07-23 18:06:34 +02:00
1 parent 311a1addce
commit fb5fe38d52
12 files changed
+88 -1

No files matched your search

+1
View File
@@ -91,6 +91,7 @@ function defaultConfig(): MasterConfig {
services: {
api: {
port: 8080,
ip_ban_exempt_ips: [],
presigned_attachment_uploads_enabled: false,
unfurl_ignored_hosts: [],
embeds: {
+1
View File
@@ -82,6 +82,7 @@ export interface MasterConfig {
services: {
api: {
port: number;
ip_ban_exempt_ips: Array<string>;
presigned_attachment_uploads_enabled: boolean;
unfurl_ignored_hosts: Array<string>;
embeds: {
@@ -70,6 +70,7 @@ const NAMED_FLUXER_ENV_OVERRIDES: Record<string, NamedEnvOverride> = {
FLUXER_NATS_JETSTREAM_URL: {path: ['services', 'nats', 'jetstream_url']},
FLUXER_NATS_AUTH_TOKEN: {path: ['services', 'nats', 'auth_token']},
FLUXER_API_PORT: {path: ['services', 'api', 'port'], parse: parseEnvValue},
FLUXER_API_IP_BAN_EXEMPT_IPS: {path: ['services', 'api', 'ip_ban_exempt_ips'], parse: parseCsv},
FLUXER_API_PRESIGNED_ATTACHMENT_UPLOADS_ENABLED: {
path: ['services', 'api', 'presigned_attachment_uploads_enabled'],
parse: parseEnvValue,