Use configuration object for api/db urls