Hi all ..
So I'm making progress with getting more familiar with FreeBSD (13.2-RELEASE), jails and so forth. Today I installed Caddy to be used as a reverse proxy for my homelab stuff. But on system reboot it's having a little problem I wasn't expecting and I'm not sure what the proper fix is ...
Below is what I see on the console at the end of the booting process :
Then if I login to ssh and look for caddy processes I see the following :
I know that it's caused by the fact that the startup script wants privs for what it needs to do and it's using "su" to gain the privs. Anyone have any suggestions on how to proceed? Maybe I should put this thing in a jail...??
Thanks in advance!
So I'm making progress with getting more familiar with FreeBSD (13.2-RELEASE), jails and so forth. Today I installed Caddy to be used as a reverse proxy for my homelab stuff. But on system reboot it's having a little problem I wasn't expecting and I'm not sure what the proper fix is ...
Below is what I see on the console at the end of the booting process :
Code:
Starting sshd.
Configuring vt: blanktime.
Starting caddy...
We trust you have received the usual lecture from the local System Administrator. It usually boils down to these three things :
#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility
For security reasons, the password you type will not be visible.
Then if I login to ssh and look for caddy processes I see the following :
Code:
root@homelab:~ # ps aux | grep caddy
root 61417 0.0 0.0 13656 3116 v0 I+ 20:54 0:00.01 /usr/bin/su -m www -c /usr/local/bin/caddy start --config /usr/local/etc/caddy/Caddyfile --adapter caddyfile --pidfile /var/run/cad
www 61607 0.0 0.0 13936 3160 v0 I 20:54 0:00.01 _su -m -c /usr/local/bin/caddy start --config /usr/local/etc/caddy/Caddyfile --adapter caddyfile --pidfile /var/run/caddy/caddy.pid
www 62077 0.0 0.1 781708 40308 v0 I 20:54 0:00.14 /usr/local/bin/caddy start --config /usr/local/etc/caddy/Caddyfile --adapter caddyfile --pidfile /var/run/caddy/caddy.pid
www 62165 0.0 0.1 786060 46372 v0 S 20:54 0:00.22 /usr/local/bin/caddy run --pingback 127.0.0.1:37176 --config /usr/local/etc/caddy/Caddyfile --adapter caddyfile --pidfile /var/run/caddy/cad
I know that it's caused by the fact that the startup script wants privs for what it needs to do and it's using "su" to gain the privs. Anyone have any suggestions on how to proceed? Maybe I should put this thing in a jail...??
Thanks in advance!