summaryrefslogtreecommitdiffstats
path: root/files/etc/nginx/sites-enabled
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2019-10-05 09:07:54 +0200
committerSuren A. Chilingaryan <csa@suren.me>2019-10-05 09:07:54 +0200
commit6a486b088b957a2af6d1dfeb692ecef6ec8c5e06 (patch)
tree9832c92a1a20ae2f8b3627248e4784442befb7d7 /files/etc/nginx/sites-enabled
parent6348285571e9877990317303b5508b737686faef (diff)
downloadmunin-6a486b088b957a2af6d1dfeb692ecef6ec8c5e06.tar.gz
munin-6a486b088b957a2af6d1dfeb692ecef6ec8c5e06.tar.bz2
munin-6a486b088b957a2af6d1dfeb692ecef6ec8c5e06.tar.xz
munin-6a486b088b957a2af6d1dfeb692ecef6ec8c5e06.zip
Optimize dockerfileHEADmaster
Diffstat (limited to 'files/etc/nginx/sites-enabled')
-rw-r--r--files/etc/nginx/sites-enabled/munin29
1 files changed, 29 insertions, 0 deletions
diff --git a/files/etc/nginx/sites-enabled/munin b/files/etc/nginx/sites-enabled/munin
new file mode 100644
index 0000000..4dc9764
--- /dev/null
+++ b/files/etc/nginx/sites-enabled/munin
@@ -0,0 +1,29 @@
+server {
+ listen 8080 default_server;
+ server_name munin;
+
+ access_log /proc/self/fd/1;
+ error_log /proc/self/fd/2;
+
+ location /munin/static {
+ alias /etc/munin/static;
+ }
+
+ 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 127.0.0.1:9000;
+ include fastcgi_params;
+ }
+
+ location / {
+ rewrite ^/$ munin/ redirect; break;
+ }
+}