Space is not the issue.
Airflow and cooling is. If you want a clean look, put vents on the floor of the thing up front, then exit for hot air on top in the back. Position for at least a 25 square inch hole on both ends, and then same between the cabinet and the wall.
Heat will kill your computer, and it's an exponential curve. 120 degrees will kill a lot of them within hours.