This references https://packages.gentoo.org/packages/www-servers/caddy
Thanks for bringing the caddy onboard. It's missing the init script.
user www-data referenced in the standard init script is not added to /etc/passwd
I made one for my overlay, feel free to copy and/or adapt. Or if the maintainer wish, I can do a PR later.
Created attachment 514228 [details]
sample caddy init script
Uses a few vars that should be defined in /etc/conf.d/caddy (all vars prefixed with caddy_).
I had a heck of a time getting caddy working from portage. I wrote my own init script before noticing this ticket & Ian's overlay. I've attached my init script for comparison, however it is very rough around the edges - it's my first openrc script.
I have some other thoughts - should /usr/bin/caddy have capability cap_net_bind_service and run as www-data?
Alternatively, a Caddyfile could be included that drops privileges for you.