Caddy on Hassbian

I have installed Caddy reverse proxy server and its working pretty well so far but I have been unable to get a few things working. Right now its installed to usr/local/bin and I have placed my Caddyfile there. I have run it from the cli and it worked nicely, retrieved the certificates and allowed me to access the front end from my duck DNS domain. I would like to get it up and running as a service but so far have not been successful.I have downloaded a version with the hook.service plugin and done from the web site:

caddy -service install

It doesn’t seem to work after a restart or just starting the service from the cli.It justs hangs in the hass loading page. Can anybody offer some advice. Where would I start checking to see if the proper files are placed.

The other issue is Im not sure where to place the “flags” that tell caddy to update my certificates when needed which I believe are agree,tls, and my email address

Thanks for any help. The Hassbian environment doesnt seem to be as popular as the others but maybe somebody can give me direction from venv install?

Hassbian is just raspbian with a few scriipts to install HA.

You should just follow whatever instructions the caddy website has to install caddy on raspbian.

For sure. I’ve looked at a few tutorials. I just wondered if for example when creating the service whether I should be creating a new user to run it under as suggested in some tutorials or run it under an existing user. It is just raspbian but at the same time they have tried to create a secure environment to run Hass in. I thought I might look at how some of the hassbian install scripts place things. I’m still not sure how to give it the info it needs to update the certificates automatically? From reading the documentation on the web site and git. Thought maybe someone might have some experience and give me some insight. I will say this was easier to get up and running than my initial experience with duckdns and letsencrypt. Getting it to run as a service properly… Less so