abiosoft / caddy-docker

Docker container for Caddy
https://hub.docker.com/r/abiosoft/caddy/
MIT License
771 stars 315 forks source link

storing/reading crts in .caddy some issues #83

Closed sononix closed 6 years ago

sononix commented 6 years ago

Been playing around with caddy that last couple of days

Hit the rate limit on cert creation so thought I could save the certs in the .caddy folder

docker run
-e "CADDYPATH=/etc/caddycerts"
-v $PWD/Caddyfile:/etc/Caddyfile
-v $PWD/.caddy:/etc/caddycerts
-p 80:80 -p 443:443
abiosoft/caddy

problem is I get a permissions error on / etc/caddycerts/acme/acme-v01.api.letsencrypt.org/sites/mysite/mysite.crt: not a directory

tried coming at this from a certbot direction and hitting issues the the crt does not exist used the syntax tls crt key

At a loss to how I can fix this rather than modifying the Dockerfile – any suggestions

sononix commented 6 years ago

.caddy it should be a folder and not a file....