- switch-image-playwright.ts + switch-image-fetcher.ts: add filter patterns for /webimage-404/ (Netgear 404 hero), /Brand/ + /cybersecurity.png/ (Moxa brand marketing images not product photos) - sql/047: Moxa 4/4 models — CDN getattachment paths (hotlink-protected, Referer: moxa.com required; R2 proxy needed for production display) - sql/048: UfiSpace 6/6 models — ufispace.com/image/<hash>/ direct PNGs; Brocade G720+G730 — broadcom.com og:image; ICX 7850-48FS — CommScope/Ruckus vistancenetworks.com ImageServer (rand param is cache-bust only, not auth) - sql/049: NVIDIA SN-series 6/6 — docscontent.nvidia.com (SN2201/3700/4700) and S3 direct (SN5400/5600); SN3750-SX via uvation reseller CDN
43 lines
2.9 KiB
SQL
43 lines
2.9 KiB
SQL
-- Migration 047 — Moxa product images (direct CDN URL injection)
|
|
--
|
|
-- CDN base: cdn-cms-frontdoor-dfc8ebanh6bkb3hs.a02.azurefd.net
|
|
-- Path pattern: /en/getattachment/Products/INDUSTRIAL-NETWORK-INFRASTRUCTURE/...
|
|
--
|
|
-- ⚠️ Hotlink-protected: CDN requires Referer: https://www.moxa.com/
|
|
-- Images will not display directly from third-party domains.
|
|
-- Use Cloudflare Worker proxy or download to R2 for production display.
|
|
--
|
|
-- All URLs verified HTTP 200 with correct Referer (2026-04-21).
|
|
|
|
-- EDS-518E — Layer-2 Managed Switch (8 + 2-port)
|
|
UPDATE switches
|
|
SET image_url = 'https://cdn-cms-frontdoor-dfc8ebanh6bkb3hs.a02.azurefd.net/en/getattachment/Products/INDUSTRIAL-NETWORK-INFRASTRUCTURE/Ethernet-Switches/Layer-2-Managed-Switches/EDS-518E-Series/moxa-eds-518e-series-image-1-(1).jpg',
|
|
product_page_url = COALESCE(product_page_url, 'https://www.moxa.com/en/products/industrial-network-infrastructure/ethernet-switches/layer-2-managed-switches/eds-518e-series'),
|
|
assets_scraped_at = NOW()
|
|
WHERE model = 'EDS-518E'
|
|
AND vendor_id = (SELECT id FROM vendors WHERE slug = 'moxa');
|
|
|
|
-- EDS-G4014 — Layer-2 Managed Switch (14-port Gigabit)
|
|
UPDATE switches
|
|
SET image_url = 'https://cdn-cms-frontdoor-dfc8ebanh6bkb3hs.a02.azurefd.net/en/getattachment/Products/INDUSTRIAL-NETWORK-INFRASTRUCTURE/Ethernet-Switches/Layer-2-Managed-Switches/EDS-G4014-Series/moxa-eds-g4014-series-image-(1).jpg',
|
|
product_page_url = COALESCE(product_page_url, 'https://www.moxa.com/en/products/industrial-network-infrastructure/ethernet-switches/layer-2-managed-switches/eds-g4014-series'),
|
|
assets_scraped_at = NOW()
|
|
WHERE model = 'EDS-G4014'
|
|
AND vendor_id = (SELECT id FROM vendors WHERE slug = 'moxa');
|
|
|
|
-- ICS-G7826A — Rackmount Industrial Managed Switch (26-port)
|
|
UPDATE switches
|
|
SET image_url = 'https://cdn-cms-frontdoor-dfc8ebanh6bkb3hs.a02.azurefd.net/en/getattachment/Products/INDUSTRIAL-NETWORK-INFRASTRUCTURE/Ethernet-Switches/Rackmount-Switches/ICS-G7826A-Series/moxa-ics-g7826a-series-image-(1).jpg',
|
|
product_page_url = COALESCE(product_page_url, 'https://www.moxa.com/en/products/industrial-network-infrastructure/ethernet-switches/rackmount-switches/ics-g7826a-series'),
|
|
assets_scraped_at = NOW()
|
|
WHERE model = 'ICS-G7826A'
|
|
AND vendor_id = (SELECT id FROM vendors WHERE slug = 'moxa');
|
|
|
|
-- IKS-G6824A — Rackmount Industrial Managed Switch (24-port)
|
|
UPDATE switches
|
|
SET image_url = 'https://cdn-cms-frontdoor-dfc8ebanh6bkb3hs.a02.azurefd.net/en/getattachment/Products/INDUSTRIAL-NETWORK-INFRASTRUCTURE/Ethernet-Switches/Rackmount-Switches/IKS-G6824A-Series/moxa-iks-g6824a-series-image-(1).jpg',
|
|
product_page_url = COALESCE(product_page_url, 'https://www.moxa.com/en/products/industrial-network-infrastructure/ethernet-switches/rackmount-switches/iks-g6824a-series'),
|
|
assets_scraped_at = NOW()
|
|
WHERE model = 'IKS-G6824A'
|
|
AND vendor_id = (SELECT id FROM vendors WHERE slug = 'moxa');
|