diff --git a/.env.template b/.env.template
index 619a6dc3b7252dee3d45dd37d6d6b78edad1f1d5..f2a748c7f029119cd13224304f8b837b422fec79 100644
--- a/.env.template
+++ b/.env.template
@@ -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
diff --git a/src/app.controller.ts b/src/app.controller.ts
index 72d10501f9ea49e887e4856d16f850a81988164a..e7c980baeda6cd4bbcefb0e6ae4e98da86063e58 100644
--- a/src/app.controller.ts
+++ b/src/app.controller.ts
@@ -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,
+    };
+  }
 }