Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
nomad-lab
nomad-FAIR
Commits
3eb08315
Commit
3eb08315
authored
Aug 08, 2019
by
Markus Scheidgen
Browse files
Added the reverse proxy config for matomo.
parent
e8f65ced
Pipeline
#53432
passed with stages
in 20 minutes and 7 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
gui/package.json
View file @
3eb08315
...
...
@@ -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"
,
...
...
gui/public/index.html
View file @
3eb08315
...
...
@@ -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.
...
...
gui/yarn.lock
View file @
3eb08315
...
...
@@ -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"
...
...
ops/docker-compose/matomo/reverse-proxy.nginx
0 → 100644
View file @
3eb08315
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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment