These videos with farm-scale production may give you hints:
Jord:
https://www.youtube.com/watch?v=6Ag3EFfsRms
Long but very thorough, with lots of explanation and how-to details:
https://www.youtube.com/watch?v=FaGbQ6sZqSw
I tried using the drawer system for crickets, but lizards, spiders, and roaches got in, so I have to stick to more sealed containers, to try to keep them out.
I need to branch out to a second container (using a large plastic tub with glued-in screen top at the moment. The plan is to make a screened top for an aquarium as the second habitat.
But perhaps thinking of the fridge as a small "room" like in the above videos...assuming there is
enough air inside. Since it has the shelves, that would help...maybe put trays in layers (to catch the eggs below, for example) like in the videos?
At least inside it's more temperature stable than perhaps the air in the room the fridge is in...?
The fridge itself would keep the pests out, I imagine. My main concern would be adequate air to keep the worms and beetles alive.
Anyway, just some thoughts. Please let us know what you come up with or try. Always good to learn more!