OPNsense Forum

Archive => 18.7 Legacy Series => Topic started by: Animosity022 on February 01, 2019, 02:16:16 pm

Title: Caddy Proxy
Post by: Animosity022 on February 01, 2019, 02:16:16 pm
I use Caddy instead of NGINX or anything else as it auto handles the SSL process and provides me easy Google oAuth.

I was seeing if it works on OPNSense as FreeBSD is supported. I installed via:

pkg install wget

wget "https://caddyserver.com/download/freebsd/amd64?plugins=http.cache,http.cgi,http.jwt,http.login,tls.dns.cloudflare&license=personal&telemetry=on"

As those the few plugins that I personally use.

I did a caddy_enable in my /etc/rc.conf
caddy_enable=YES

And dropped the freebsd init script in /usr/local/etc/rc.d/caddy with a few basic tweaks for the paths and such.

Very happy with the ease it was installed and setup as I moved my internal proxy to my router instead of having it on my Linux box.
Title: Re: Caddy Proxy
Post by: franco on February 04, 2019, 11:56:33 am
There's a port for this... https://www.freshports.org/www/caddy/ are you asking for an official package or is this more of an informational post at this point?


Cheers,
Franco
Title: Re: Caddy Proxy
Post by: Animosity022 on February 04, 2019, 03:03:13 pm
Just informational.

They already have a freebsd download so you can use that to configure your own plugins as the port is missing some I use and a version behind.
Title: Re: Caddy Proxy
Post by: franco on February 05, 2019, 09:28:46 am
Ah ok, shall we move this to the tutorials forum so it can always be discussed in the future? This 18.7 forum will be archived in 6 months.


Cheers,
Franco
Title: Re: Caddy Proxy
Post by: Animosity022 on February 05, 2019, 03:49:20 pm
I'll make a post in there that is a bit more descriptive on the install / setup and use.

Thanks for suggesting!
Title: Re: Caddy Proxy
Post by: franco on February 05, 2019, 11:19:33 pm
Wonderful, thank you :)