Closed yodog closed 2 years ago
Snaps are sandboxed and thus have no access to outside files. Also, by default, the snap starts an instance of caddy
. So whenever you change the Caddyfile
you should run:
curl localhost:2019/load --request POST --header 'Content-Type: text/caddyfile' --data-binary @<PATH_TO_CADDYFILE>
I’ve updated the README.
details here: https://caddy.community/t/snap-caddy-cant-find-caddyfile
caddy version
v2.4.5 h1:P1mRs6V2cMcagSPn+NWpD+OEYUYLIf6ecOa48cFGeUg=
installed with
snap install caddy --edge
on Raspberry Pi
Linux pi 5.10.60-v7+ #1449 SMP Wed Aug 25 15:00:01 BST 2021 armv7l GNU/Linux
i created a file
/tmp/Caddyfile
but Caddy insists it does not exists and refuses to start :confused: