The following image is courtesy of Victron Energy.
Yellow square is the shunt. Charger and controller should be connected where the blue Victron device is.
Connecting positive and negative at opposite ends of the pack helps balance current between all batteries. If connected to one single battery, that first battery would see higher peak currents than the others.
Cheers
Pat.