diff options
author | Soulou <leo.unbek@gmail.com> | 2016-11-02 00:11:51 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-02 00:11:51 +0100 |
commit | 73d0b3879b90fb48a9177a03382cfd132ab5c431 (patch) | |
tree | e786e6d4a761f598eec5e4753c70fdb258f04b10 /nginx-munin | |
parent | 6580e4949d3f3cf3f1972df9a7ce284dddae96b4 (diff) | |
parent | aa2d22c92a523efd26cd575320ab90df5c94e744 (diff) | |
download | munin-73d0b3879b90fb48a9177a03382cfd132ab5c431.tar.gz munin-73d0b3879b90fb48a9177a03382cfd132ab5c431.tar.bz2 munin-73d0b3879b90fb48a9177a03382cfd132ab5c431.tar.xz munin-73d0b3879b90fb48a9177a03382cfd132ab5c431.zip |
Merge pull request #7 from Scalingo/support_cgi
Support CGI graphs
Diffstat (limited to 'nginx-munin')
-rw-r--r-- | nginx-munin | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/nginx-munin b/nginx-munin index 66bf1d1..d0f5da9 100644 --- a/nginx-munin +++ b/nginx-munin @@ -1,16 +1,25 @@ server { listen 8080 default_server; server_name munin; + access_log /var/log/nginx/munin-access.log; error_log /var/log/nginx/munin-server.log; + auth_basic "Munin Server"; + auth_basic_user_file "/etc/munin/htpasswd.users"; + location /munin { root /var/cache/munin/www; } + 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; + include fastcgi_params; + } + location / { - auth_basic "Munin Server"; - auth_basic_user_file "/etc/munin/htpasswd.users"; root "/var/cache/munin/www"; } } |