Convert munin's nginx config to Caddy


(ddH) #1

The static web is working fine, but i can’t get the Zoom to work…

http://guide.munin-monitoring.org/en/latest/example/webserver/nginx.html

  location ^~ /munin-cgi/munin-cgi-graph/ {
   access_log off;
   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;
}

I can’t figure out how to convert this section into Caddyfile…

This is my current Caddyfile:

http://munin.xx.xx {
 root /usr/local/caddy/www/munin
 timeouts none
}
http://munin.xx.xx/munin/static/ {
root /etc/munin/static/
}
http://munin.xx.xx/munin/ {
root /var/cache/munin/www/
}

(Matthew Fay) #2

You’ll need to use the fastcgi directive. The most common format is something like:

fastcgi / 127.0.0.1:9001 php

But you can substitute your socket (unix:/var/run/munin/fcgi-graph.sock) for the localhost address.

https://caddyserver.com/docs/fastcgi


(system) #3

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.