@janus-idp/backstage-plugin-matomo-backend-dynamic
v1.9.2
Published
This is the matomo backend plugin that act as a proxy with matomo instance.
Downloads
53
Readme
Matomo Backend
This is the matomo backend plugin that act as a proxy with matomo instance.
Plugin will inject the auth token and ensure that the request are only read only operations.
Matomo API cannot be used as proxy layer due to the token auth it follows. Thus this plugin will act as proxy layer
Getting Started
Installing the NPM package
yarn add --cwd packages/backend @janus-idp/plugin-matomo-backend
Installing the plugin
Adding the plugin to the new backend
Add the following to your packages/backend/src/index.ts
file:
const backend = createBackend();
// Add the following line
backend.add(import('@janus-idp/backstage-plugin-matomo-backend'));
backend.start();
Plugin Configurations
Add the following configurations into your app-config.yaml
file:
matomo:
apiToken: ${MATOMO_API_TOKEN}
apiUrl: ${MATOMO_API_URL}
# (OPTIONAL) Set to false if you get SSL certificate error
secure: ${MATOMO_SECURE_FLAG}