This is the connection between the world of rails and the world of belts.
One side should be placed towards the straight rail. The opposite side exports resources. The remaining two sides accept resources.
The important thing is that you choose if the depo loads resources to machines or unload from them.
Simple as that.