Hi, New to Caddy, I would like to have Caddy start automatically on reboot. I’m running Caddy as a reverse proxy on Centos 7 operating system. I’d like to have Caddy start when I boot the computer its running on. This is in case of power fail or the hypervisor needs to reboot etc. Can someone give directions or point me to resources that explain how to do it.
I’ve searched this form for:
start auto boot
systemd Centos
but haven’t found what I’m looking for.
Thanks, I enjoy how Caddy obtains certificates for you automatically using Let’s Encrypt!!
OK, Thanks for the help. I used the directions at: https://github.com/mholt/caddy/tree/master/dist/init/linux-systemd
3 things: GID 33 was already in use on Centos 7 for tape drive access. You can see what groups are in use by: cat /etc/group I used 34 instread. Also needed to sudo yum install wget. For reverse proxy only setup, where you are not serving files, you can skip setting up the /var/www directory steps.