Change ors limits

Hi how do i change the limits in config file ?
i don’t understand the docs. should i edit yml file or the json.
i’ve tried both and it doesn’t work…
i want to set these to errors to be unlimited:

Map.js:94 Server responded with 400: {"error":{"code":2004,"message":"Request parameters exceed the server configuration limits. The approximated route distance must not be greater than 100000.0 meters."},"info":{"engine":{"build_date":"2023-11-16T15:05:35Z","version":"7.2.0"},"timestamp":1708820585903}}

and :

Error response: {"code":3,"error":"Request parameters exceed the server configuration limits. Only a total of 2500 routes are allowed."}