I made this hinge for my printer enclosure. Couldn't find one on here so I made one. Its designed for a 5mm offset between the two surfaces that the hinge attaches too. The holes will accommodate M4 bolts.
The hinge comes in 2 files. You may have to rotate "hinge 2" or print it with supports. Print them vertically. I print them with a 5mm brim.