https://www.amazon.com/Garden-Thread-Connector-Shutoff-Adapter/dp/B07S9VDBS2
I would run a shorter hose to the back. Put a valve like the one I posted on it then put a flexible hose afterwards. Make the main run a strong rubber hose and use the valve to shut the water to the flexible hose and allow it to drain without needing to shut off the main water valve.