summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2019-09-26 06:21:33 +0200
committerSuren A. Chilingaryan <csa@suren.me>2019-09-26 06:21:33 +0200
commit6348285571e9877990317303b5508b737686faef (patch)
tree213ae1d9f5f09ab39d928c5ca82019ae6c4053fe
parent4d5bc7291ed8c6df4eb34e7b3e7ebd5bf164e718 (diff)
downloadmunin-6348285571e9877990317303b5508b737686faef.tar.gz
munin-6348285571e9877990317303b5508b737686faef.tar.bz2
munin-6348285571e9877990317303b5508b737686faef.tar.xz
munin-6348285571e9877990317303b5508b737686faef.zip
Fix redirect
-rw-r--r--Dockerfile4
-rw-r--r--munin.conf2
-rw-r--r--nginx-munin2
3 files changed, 4 insertions, 4 deletions
diff --git a/Dockerfile b/Dockerfile
index cf26e49..0ada776 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -49,8 +49,8 @@ RUN \
rm -rf /var/lib/munin/cgi-tmp && \
ln -s /munin/www/cache /var/lib/munin/cgi-tmp && \
\
- chgrp -R root /munin /var/run/munin /etc/munin/munin.conf /var/tmp/nginx /var/lib/nginx && \
- chmod -R g+rw /munin /var/run/munin /etc/munin/munin.conf /var/tmp/nginx && \
+ chgrp -R root /munin /etc/munin/munin.conf /var/tmp/nginx /var/lib/nginx && \
+ chmod -R g+rw /munin /etc/munin/munin.conf /var/tmp/nginx && \
for name in "/var/tmp/nginx /munin/"; do find $name -type d -print0 | xargs -0 chmod g+x; done
EXPOSE 8080
diff --git a/munin.conf b/munin.conf
index a331659..aa3e550 100644
--- a/munin.conf
+++ b/munin.conf
@@ -1,5 +1,5 @@
dbdir /munin/db
-rundir /var/run/munin
+rundir /tmp
htmldir /munin/www
logdir /munin/log
diff --git a/nginx-munin b/nginx-munin
index 07451b3..4dc9764 100644
--- a/nginx-munin
+++ b/nginx-munin
@@ -24,6 +24,6 @@ server {
}
location / {
- rewrite ^/$ /munin/ redirect; break;
+ rewrite ^/$ munin/ redirect; break;
}
}