Add public IP lists for Microsoft Azure and Meta/Facebook

Update the database migration script to correctly insert Microsoft Azure and Meta/Facebook public IP lists, adjusting column names and values for `public_lists`.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 7a657272-55ba-4a79-9a2e-f1ed9bc7a528
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: cae9d7ea-e651-417d-9818-ffd5e598074b
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/449cf7c4-c97a-45ae-8234-e5c5b8d6a84f/7a657272-55ba-4a79-9a2e-f1ed9bc7a528/C6BdLIt
This commit is contained in:
marco370 2026-02-14 09:24:59 +00:00
parent 182d98de0d
commit 0db7d03db7

View File

@ -2,32 +2,31 @@
-- Date: 2026-01-02 -- Date: 2026-01-02
-- Microsoft Azure IP ranges (whitelist - cloud provider) -- Microsoft Azure IP ranges (whitelist - cloud provider)
INSERT INTO public_lists (name, url, type, format, enabled, description, fetch_interval) INSERT INTO public_lists (name, url, type, enabled, fetch_interval_minutes)
VALUES ( VALUES (
'Microsoft Azure', 'Microsoft Azure',
'https://raw.githubusercontent.com/femueller/cloud-ip-ranges/master/microsoft-azure-ip-ranges.json', 'https://raw.githubusercontent.com/femueller/cloud-ip-ranges/master/microsoft-azure-ip-ranges.json',
'whitelist', 'whitelist',
'json',
true, true,
'Microsoft Azure cloud IP ranges - auto-updated from Azure Service Tags', 60
3600
) ON CONFLICT (name) DO UPDATE SET ) ON CONFLICT (name) DO UPDATE SET
url = EXCLUDED.url, url = EXCLUDED.url,
description = EXCLUDED.description; enabled = EXCLUDED.enabled;
-- Meta/Facebook IP ranges (whitelist - major service provider) -- Meta/Facebook IP ranges (whitelist - major service provider)
INSERT INTO public_lists (name, url, type, format, enabled, description, fetch_interval) INSERT INTO public_lists (name, url, type, enabled, fetch_interval_minutes)
VALUES ( VALUES (
'Meta (Facebook)', 'Meta (Facebook)',
'https://raw.githubusercontent.com/parseword/util-misc/master/block-facebook/facebook-ip-ranges.txt', 'https://raw.githubusercontent.com/parseword/util-misc/master/block-facebook/facebook-ip-ranges.txt',
'whitelist', 'whitelist',
'plain',
true, true,
'Meta/Facebook IP ranges (includes Instagram, WhatsApp, Oculus) from BGP AS32934/AS54115/AS63293', 60
3600
) ON CONFLICT (name) DO UPDATE SET ) ON CONFLICT (name) DO UPDATE SET
url = EXCLUDED.url, url = EXCLUDED.url,
description = EXCLUDED.description; enabled = EXCLUDED.enabled;
-- Update schema version
UPDATE schema_version SET version = 9, updated_at = NOW();
-- Verify insertion -- Verify insertion
SELECT id, name, type, enabled, url FROM public_lists WHERE name IN ('Microsoft Azure', 'Meta (Facebook)'); SELECT id, name, type, enabled, url FROM public_lists WHERE name IN ('Microsoft Azure', 'Meta (Facebook)');