summaryrefslogtreecommitdiffstats
path: root/nginx-munin
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2019-08-28 19:43:26 +0200
committerSuren A. Chilingaryan <csa@suren.me>2019-08-28 19:43:26 +0200
commitd6e30533d7730331452c5f61a98c9d1eec486a0b (patch)
treeb23b00fe8d94c656f92d228fc2243942c14cb298 /nginx-munin
parentbf1b72fa544f9b2eb41867dd08d379242261ed35 (diff)
downloadmunin-d6e30533d7730331452c5f61a98c9d1eec486a0b.tar.gz
munin-d6e30533d7730331452c5f61a98c9d1eec486a0b.tar.bz2
munin-d6e30533d7730331452c5f61a98c9d1eec486a0b.tar.xz
munin-d6e30533d7730331452c5f61a98c9d1eec486a0b.zip
OpenShift support
Diffstat (limited to 'nginx-munin')
-rw-r--r--nginx-munin20
1 files changed, 12 insertions, 8 deletions
diff --git a/nginx-munin b/nginx-munin
index d0f5da9..07451b3 100644
--- a/nginx-munin
+++ b/nginx-munin
@@ -2,24 +2,28 @@ server {
listen 8080 default_server;
server_name munin;
- access_log /var/log/nginx/munin-access.log;
- error_log /var/log/nginx/munin-server.log;
+ access_log /proc/self/fd/1;
+ error_log /proc/self/fd/2;
- auth_basic "Munin Server";
- auth_basic_user_file "/etc/munin/htpasswd.users";
+ location /munin/static {
+ alias /etc/munin/static;
+ }
- location /munin {
- root /var/cache/munin/www;
+ location ^~ /munin/ {
+ fastcgi_split_path_info ^(/munin)(.*);
+ fastcgi_param PATH_INFO $fastcgi_path_info;
+ fastcgi_pass 127.0.0.1:9001;
+ include fastcgi_params;
}
location ^~ /munin-cgi/munin-cgi-graph/ {
fastcgi_split_path_info ^(/munin-cgi/munin-cgi-graph)(.*);
fastcgi_param PATH_INFO $fastcgi_path_info;
- fastcgi_pass unix:/var/run/munin/fcgi-graph.sock;
+ fastcgi_pass 127.0.0.1:9000;
include fastcgi_params;
}
location / {
- root "/var/cache/munin/www";
+ rewrite ^/$ /munin/ redirect; break;
}
}