.
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
ce0a9bac57
commit
67e26e1eae
|
@ -126,7 +126,7 @@ server {
|
|||
# required to avoid HTTP 411: see Issue #1486 (https://github.com/moby/moby/issues/1486)
|
||||
chunked_transfer_encoding on;
|
||||
server_name ${SERVER_NAME};
|
||||
locatio ~ /v2/(.*) {
|
||||
location ~ /v2/(.*) {
|
||||
# Do not allow connections from docker 1.5 and earlier
|
||||
# docker pre-1.6.0 did not properly set the user agent on ping, catch "Go *" user agents
|
||||
if (${DOLLAR}http_user_agent ~ "^(docker\/1\.(3|4|5(?!\.[0-9]-dev))|Go ).*$" ) {
|
||||
|
@ -221,6 +221,34 @@ server {
|
|||
proxy_buffering off;
|
||||
proxy_pass ${DOLLAR}upstream;
|
||||
}
|
||||
location ~ ${PORTAINER_LOCATION}(.*) {
|
||||
resolver 127.0.0.11 ipv6=off valid=30s; ## internal docker dns
|
||||
sub_filter '</head>' '<!-- Matomo -->
|
||||
<script type="text/javascript">
|
||||
var _paq = window._paq || [];
|
||||
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
|
||||
_paq.push(["trackPageView"]);
|
||||
_paq.push(["enableLinkTracking"]);
|
||||
(function() {
|
||||
var u="//${SERVER_NAME}${MATOMO_LOCATION}";
|
||||
_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 -->
|
||||
</head>';
|
||||
|
||||
set ${DOLLAR}upstream ${PORTAINER_PROXY_PASS}${DOLLAR}1${DOLLAR}is_args${DOLLAR}args;
|
||||
proxy_set_header Host ${DOLLAR}http_host;
|
||||
proxy_set_header X-Real-IP ${DOLLAR}remote_addr;
|
||||
proxy_set_header X-Forwarded-For ${DOLLAR}proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto ${DOLLAR}scheme;
|
||||
proxy_buffering off;
|
||||
proxy_pass ${DOLLAR}upstream;
|
||||
}
|
||||
|
||||
location ~ ${NAGIOS_LOCATION}(.*) {
|
||||
resolver 127.0.0.11 ipv6=off valid=30s; ## internal docker dns
|
||||
sub_filter '</head>' '<!-- Matomo -->
|
||||
|
|
Reference in New Issue