From 70c9a8d6bcac111980a6cd395f64de1ed14a8e5d Mon Sep 17 00:00:00 2001 From: Anuar Ustayev Date: Fri, 19 Nov 2021 11:29:20 +0600 Subject: [PATCH] [dms][xs]: added an option to use internal API URL so that frontend doesn't make too many connections to CKAN API going through nginx. If it isn't provided, it would use public `API_URL` as before. --- lib/dms.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/dms.js b/lib/dms.js index 0883bfcb..dd6685e2 100644 --- a/lib/dms.js +++ b/lib/dms.js @@ -9,7 +9,7 @@ const logger = require('../utils/logger') class DmsModel { constructor(config) { this.config = config - this.api = config.get('API_URL') + this.api = config.get('INTERNAL_API_URL') || config.get('API_URL') } async getJsonResponse(params, action) {