Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Actually, you can set the permissions for log files now. See https://caddyserver.com/docs/caddyfile/directives/log#file


Oh good to know!

Do you know if Caddy can self update or if is there some other easy method? Manually doing it to get the cloudflare plugin is a pain.


No, you have to build Caddy with plugins. We provide xcaddy to make it easy. Sign up for notifications on github for releases, and just write yourself a tiny bash script to build the binary with xcaddy, and restart the service. You could potentially do a thing where you hook into apt to trigger your script after Caddy's deb package version changes, idk. But it's up to you to handle.


I am wondering why you said "no" to the self update thing.

https://caddyserver.com/docs/command-line#caddy-upgrade


Because that's not automated, it's a manual command and uses caddyserver.com resources (relatively low powered cloud VMs) with no uptime guarantees. It _should not_ be used in automation scenarios, only for quick manual personal use scenarios.


Is there a way to point it somewhere else to get the binary?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: