You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As stated in the wiki caddy requests a new certificate because the caddy data isn't persisted through restarts. Is this behavior intended? Because it shouldn't be much work to make the data persist. I think the issue is that the target location of the bind mount at
points to the wrong location and an environment variable should be set so that it works, as stated in the caddy container's instructions.
On my fork I also upgraded to Caddy 2 but the change to make it persist was to simply fix the bind mount location (curious-broccoli@d8114bf) and it seems to work.
Thank you for reporting this. I think we had issues with this in the past, especially when we were restarting the server multiple times we encountered issue obtaining a Let's Encrypt certificate.
I thought this was resolved. At least, I think we changed the server configuration to avoid this problem on our setups.
We'll have a look at it. Thank you for the proposed fix.
Activity
Didayolo commentedon Mar 12, 2024
Thank you for reporting this. I think we had issues with this in the past, especially when we were restarting the server multiple times we encountered issue obtaining a Let's Encrypt certificate.
I thought this was resolved. At least, I think we changed the server configuration to avoid this problem on our setups.
We'll have a look at it. Thank you for the proposed fix.
ihsaan-ullah commentedon Apr 12, 2024
@curious-broccoli why have you replaced
./certs/caddy:/etc/caddycertsby./certs:/dataIn the caddy documentation they are using
/etc/caddycertscurious-broccoli commentedon Apr 12, 2024
Uh, the commit I linked is for the official caddy 2 image that I use on the fork.
The
/etc/caddycertsis fine to use, but that example requires setting the environment variable to work.as stated in the part of the docs you linked. So I think you just gotta set that.
Sorry for any confusion.
Didayolo commentedon Apr 16, 2024
@ihsaan-ullah In conclusion, do we merge or close #1360 ?