OpenBSD bgplg cgi script help

I’m trying to get OpenBSD’s bgplg (BGP looking glass) working with Caddy.
The original implementation assumed nginx and works well with this config:

ext_addr="0.0.0.0" 
 
server "lg.example.net" { 
	listen on $ext_addr port 80 
	location "/cgi-bin/*" { 
		fastcgi 
		root "" 
	} 
}

When I try to get this working in Caddy I see the page load, but the drop down menu (using the binary bgplgsh) does not work. nginx would assume the existence of resolv.conf and a few related binaries under:

var/www/cgi-bin/bgplg
/var/www/cgi-bin/bgplg
/var/www/etc

It would also use a local socket to communicate with the bgp daemon:
socket "/var/www/run/bgpd.rsock" restricted

See:
https://man.openbsd.org/bgplg.8
http://www.ogris.de/howtos/openbsd-looking-glass.html

Any help on getting this to work with Caddy is appreciated, it’d help me turn off running nginx on port 81.

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