How to connect Switch2osm tile server & JOSM

Could you give me some helpfull advise how to connect JOSM to local OSM tile server (switch2osm)
I ll try to add tms source but any time get responce like not correct url…

Server does work and leaflet show map.

Tell me more about API and how to deply it.

Thank you!