ソースを参照

zabbix-nginx

master
Giles Bradshaw 5ヶ月前
コミット
b9fcd15f17
2個のファイルの変更29行の追加0行の削除
  1. +2
    -0
      docker-compose.yml
  2. +27
    -0
      letsencrypt-nginx/conf/git.conf

+ 2
- 0
docker-compose.yml ファイルの表示

@@ -26,6 +26,8 @@ services:
- MATOMO_LOCATION=/analytics/
- NAGIOS_PROXY_PASS=http://nagios/
- NAGIOS_LOCATION=/nagios/
- ZABBIX_PROXY_PASS=http://zabbix-web/
- ZABBIX_LOCATION=/zabbix/
- GIT_LOCATION=/git/
- BLOG_LOCATION=/
- CHAT_LOCATION=/chat/


+ 27
- 0
letsencrypt-nginx/conf/git.conf ファイルの表示

@@ -279,6 +279,33 @@ server {
proxy_buffering off;
proxy_pass ${DOLLAR}upstream;
}
location ~ ${ZABBIX_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 ${ZABBIX_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 ~ ${CHAT_LOCATION}sockjs(.*) {
resolver 127.0.0.11 ipv6=off valid=30s; ## internal docker dns