Commit 759e1bdd authored by Markus Scheidgen's avatar Markus Scheidgen
Browse files

Adapted matomo.

parent e5eb020b
Pipeline #76961 passed with stages
in 22 minutes and 28 seconds
......@@ -17,7 +17,7 @@ export const matomo = matomoEnabled ? PiwikReactRouter({
url: matomoUrl,
siteId: matomoSiteId,
clientTrackerName: 'stat.js',
serverTrackerName: 'stat.php'
serverTrackerName: 'stat'
}) : null
const keycloak = Keycloak({
......@@ -10,7 +10,8 @@ services:
- /nomad/fairdi/db/matomo/mariadb:/bitnami
image: 'bitnami/matomo:3'
build: ./matomo
image: 'fairdi/matomo:3'
container_name: nomad_matomo_matomo
- MARIADB_HOST=mariadb
FROM bitnami/matomo:3
RUN sed -i -e 's/action_name=/a=b\&action_name=/g' /opt/bitnami/matomo/piwik.js
RUN sed -i -e 's/&send_image=0/\&/g' /opt/bitnami/matomo/piwik.js
\ No newline at end of file
RewriteRule "^/fairdi/stat/stat.js$" "http://<the ip address>:8001/piwik.js" [p]
RewriteRule "^/fairdi/stat/stat.php$" "http://<the ip address>:8001/piwik.php" [p]
RewriteRule "^/fairdi/stat/stat$" "http://<the ip address>:8001/piwik.php" [p]
ProxyPass /fairdi/stat http://<the ip address>:8001
ProxyPassReverse /fairdi/stat http://<the ip address>:8001
<Proxy http://<the ip address>:8001/app>
location /fairdi/stat {
rewrite ^(.*)/stat.js$ $1/piwik.js;
rewrite ^(.*)/stat.php$ $1/piwik.php;
rewrite ^(.*)/stat$ $1/piwik.php;
rewrite ^/fairdi/stat/(.*)$ /$1 break;
proxy_set_header X-Forwarded-Uri /fairdi/stat;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment