Years ago, had a client insisted on a WiFi bridge between two buildings. Similar issue - hella hot in the attic space where the Bridge devices would live. So, we got a couple of those Peltier cooled refrigerators some truck drivers have. Kind that are just about big enough for a single 6 pack. Poked holes for the cables, stuffed the WiFi gear in 'em and used a 12V wall wart to power. Kept the 'tronics nice & cool for years.
(edit to add) Here ya go - almost the same exact one we used way back when: https://www.amazon.com/Portable-Mini-Fridge-Cooler-Warmer/dp/B07WG3DVDG