With the controller shown,
notice the connector heads "west" (yellow),
meaning a tight enclosing cabinet needs to be as wide as the red indication.
However, if the white connector immediately did a 90 degree turn down
(direction downwards in blue)
you can see it would drastically save width of a tight enclosure.
Is there such a thing? A 90° version of the white connector seen?
(I suppose ... a 180 degree would be even better, a "backwards" connector)
Note - of course, for a one-off one could just modify the board and I guess solder on five wires which could hang straight down. However it's not a reliable pipeline when producing many of them, allowing for easy field repairs, etc etc.
(FWIW I considered just specifying to "bend down" the five pins on all units, but then the "locking tongue" of the white connector would have to not exist ... again it's a flakey solution.)
thanks @RemcoVik, trying my best to add more photos!
It has no identifying marks I can see :/