From d6e30533d7730331452c5f61a98c9d1eec486a0b Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Wed, 28 Aug 2019 19:43:26 +0200 Subject: OpenShift support --- nginx-munin | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) (limited to 'nginx-munin') 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; } } -- cgit v1.2.3