Open
Description
Hi,
I managed to mess up my Caddyfile, but caddy is still running and working -- however, it will certainly break as soon as it's restarted.
This makes me think that it would be a nice thing to have an optional flag like --keep-caddyfile
(or make it the default, depending on filesize maybe) that saves Caddyfile
as it was when loading it into memory, allowing you to do something like:
caddy --write-caddyfile > Caddyfile
To get back a file on disk equal to what the config was for the currently running instance of caddy.
The closest I've been able to find is curl localhost:2019/config/
but this doesn't exactly seem trivial to get back into a Caddyfile format.
And yes, I know, you're supposed to have backups to restore from. That's what I'm doing, it would just be a nice feature.
Metadata
Metadata
Assignees
Labels
No labels