.
continuous-integration/drone/push Build was killed Details

This commit is contained in:
Giles Bradshaw 2020-05-05 13:56:47 +01:00
parent 6a073282ce
commit 27c7a0a11d
1 changed files with 16 additions and 15 deletions

View File

@ -125,21 +125,22 @@ server {
location ~ ${GIT_LOCATION}(.*) { location ~ ${GIT_LOCATION}(.*) {
resolver 127.0.0.11 ipv6=off valid=30s; ## internal docker dns resolver 127.0.0.11 ipv6=off valid=30s; ## internal docker dns
sub_filter '</head>' '<!-- Matomo --> sub_filter '</head>' '<!-- Matomo -->
<script type="text/javascript"> <script type="text/javascript">
var _paq = window._paq || []; var _paq = window._paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */ /* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(['trackPageView']); _paq.push(["trackPageView"]);
_paq.push(['enableLinkTracking']); _paq.push(["enableLinkTracking"]);
(function() { (function() {
var u="//sigyl.com/analytics/"; var u="//${SERVER_NAME}${MATOMO_LOCATION}";
_paq.push(['setTrackerUrl', u+'matomo.php']); _paq.push(["setTrackerUrl", u+"matomo.php"]);
_paq.push(['setSiteId', '1']); _paq.push(["setSiteId", "1"]);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; 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); g.type="text/javascript"; g.async=true; g.defer=true; g.src=u+"matomo.js"; s.parentNode.insertBefore(g,s);
})(); })();
</script> </script>
<!-- End Matomo Code --> <!-- End Matomo Code -->
</head>'; </head>';
set ${DOLLAR}upstream ${GIT_PROXY_PASS}${DOLLAR}1${DOLLAR}is_args${DOLLAR}args; set ${DOLLAR}upstream ${GIT_PROXY_PASS}${DOLLAR}1${DOLLAR}is_args${DOLLAR}args;
proxy_pass ${DOLLAR}upstream; proxy_pass ${DOLLAR}upstream;
} }