Open lindenstaub opened 6 years ago
setcap CAP_NET_BIND_SERVICE=+eip /path/to/caddy didn't help, although
setcap CAP_NET_BIND_SERVICE=+eip /path/to/caddy
# getcap /usr/local/bin/caddy /usr/local/bin/caddy = cap_net_bind_service+ep
Running caddy as root doesn't get this error.
Solution: Uncomment in the /etc/systemd/system/caddy.service file
/etc/systemd/system/caddy.service
;CapabilityBoundingSet=CAP_NET_BIND_SERVICE ;AmbientCapabilities=CAP_NET_BIND_SERVICE ;NoNewPrivileges=true
Uncomment with cap enabled or not?
setcap CAP_NET_BIND_SERVICE=+eip /path/to/caddy
didn't help, althoughRunning caddy as root doesn't get this error.
Solution: Uncomment in the
/etc/systemd/system/caddy.service
file