Commit 3eb08315 authored by Markus Scheidgen's avatar Markus Scheidgen
Browse files

Added the reverse proxy config for matomo.

parent e8f65ced
Pipeline #53432 passed with stages
in 20 minutes and 7 seconds
......@@ -18,6 +18,7 @@
"material-ui-flat-pagination": "^3.2.0",
"pace": "^0.0.4",
"pace-js": "^1.0.2",
"piwik-react-router": "^0.12.1",
"react": "^16.4.2",
"react-app-polyfill": "^1.0.1",
"react-autosuggest": "^9.4.3",
......
......@@ -40,6 +40,25 @@
You need to enable JavaScript to run this app.
</noscript>
<script src="%PUBLIC_URL%/env.js"></script>
<!-- Matomo -->
<script type="text/javascript">
if (!window.nomadEnv.debug) {
var _paq = window._paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="//labdev-nomad.esc.rzg.mpg.de/fairdi/matomo/";
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '1']);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
})();
}
</script>
<!-- End Matomo Code -->
<div id="root"></div>
<!--
This HTML file is a template.
......
......@@ -5987,6 +5987,13 @@ pinkie@^2.0.0:
version "2.0.4"
resolved "https://registry.yarnpkg.com/pinkie/-/pinkie-2.0.4.tgz#72556b80cfa0d48a974e80e77248e80ed4f7f870"
piwik-react-router@^0.12.1:
version "0.12.1"
resolved "https://registry.yarnpkg.com/piwik-react-router/-/piwik-react-router-0.12.1.tgz#0caf984715a5b22c85610e0c02ae372b1ca37c41"
dependencies:
url-join "^1.1.0"
warning "^3.0.0"
pkg-dir@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/pkg-dir/-/pkg-dir-1.0.0.tgz#7a4b508a8d5bb2d629d447056ff4e9c9314cf3d4"
......@@ -8064,6 +8071,10 @@ urix@^0.1.0:
version "0.1.0"
resolved "https://registry.yarnpkg.com/urix/-/urix-0.1.0.tgz#da937f7a62e21fec1fd18d49b35c2935067a6c72"
url-join@^1.1.0:
version "1.1.0"
resolved "https://registry.yarnpkg.com/url-join/-/url-join-1.1.0.tgz#741c6c2f4596c4830d6718460920d0c92202dc78"
url-loader@0.6.2:
version "0.6.2"
resolved "https://registry.yarnpkg.com/url-loader/-/url-loader-0.6.2.tgz#a007a7109620e9d988d14bce677a1decb9a993f7"
......
location /fairdi/matomo {
rewrite ^/fairdi/matomo/(.*)$ /$1 break;
proxy_set_header X-Forwarded-Uri /fairdi/matomo;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header Host $host;
proxy_pass http://<the ip address>:8001;
}
\ No newline at end of file
Supports Markdown
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