mauricev Apprentice

Joined: 22 Mar 2004 Posts: 205
|
Posted: Mon Mar 10, 2025 8:39 pm Post subject: Why doesn’t caddy like user http in its init script? |
|
|
I had to build my own caddy executable as the supplied one doesn't come with an option to handle cloudflare wildcard dns certificate download. However, it should be identical otherwise to the supplied executable.
However, when it runs from its init script, it runs as the http user:
Code: | command_user="${command_user:-"http:http"}" |
This doesn't work. It starts, attempts to get a cert, and then promptly gives up.
Only changing the user to root:
Code: | command_user="${command_user:-"root:root"}" |
allows it to work.
Why might this be? |
|