1. My Caddy version (
2. How I run Caddy:
a. System environment:
paste command here
c. Service/unit/compose file:
paste full file contents here
d. My complete Caddyfile:
paste Caddyfile here
DO NOT REDACT anything except credentials
3. The problem I’m having:
We are using dynamic api to post entry for configuration like reverse proxy etc. for different domains which gets reflected immediately and can view via “/config”.
However if i reboot caddy configuration goes off. Can we also save configuration on disk so that post reboot we get those configuration reloaded from disk ?
You’re looking for the
--resume cmd flag. By default, Caddy stores the updated config in the
$XDG_CONFIG_HOME/caddy or the user config directory (e.g.
%AppData% on Windows,
/Library/Application Support on Mac, etc.), respectively. If
--resume is passed, Caddy will look for the saved config and proceed from the last known state.
Look for the
--resume flag under
caddy run and
caddy start commands.
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.