Skip to content
Snippets Groups Projects
Commit b06d62d1 authored by Etienne LOUPIAS's avatar Etienne LOUPIAS
Browse files

refactor(conf): replace client conf file by env var

parent 04ccf0b7
No related branches found
No related tags found
2 merge requests!404V3.1.0 (sans impression),!379refactor(conf): replace client conf file by env var
......@@ -39,4 +39,7 @@ ELASTICSEARCH_PORT=<elastic search port>
ELASTICSEARCH_USERNAME=<elastic search username>
ELASTICSEARCH_PASSWORD=<elastic search password>
ELASTIC_SECURITY=<elastic search security boolean (true = secure)>
KIBANA_PORT=<kibana port>
\ No newline at end of file
KIBANA_PORT=<kibana port>
# Matomo
MATOMO_URL=<matomo url>
MATOMO_SITEID=<matomo site id>
\ No newline at end of file
......@@ -13,4 +13,16 @@ export class AppController {
version: version,
};
}
@Get('config')
async config() {
// temp IS_OPENSHIFT: on appsoc servers, GHOST_HOST_AND_PORT is local network server name
return {
ghostAdminUrl:
((process.env.IS_OPENSHIFT ? process.env.GHOST_HOST_AND_PORT : process.env.GHOST_URL_APPSOC) ||
'http://localhost:2368') + '/ghost/',
matomoTrackerUrl: process.env.MATOMO_URL,
matomoSiteId: process.env.MATOMO_SITEID,
};
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment