How to reset config when run as an api-service

1. The problem I’m having:

I updated my admin listener (the wrong address apparently) and have locked myself out of future config updates. I can’t even see what it’s using as the existing config as my config.json is being ignored. I’m assuming the config is in memory somewhere, how do I clear it?

2. Error messages and/or full log output:

  "error": "host not allowed: #####"

3. Caddy version:


4. How I installed and ran Caddy:

Installed as an api-service using custom build with DynamoDB support

a. System environment:

Amazon Linux2

b. Command:

caddy run --config /etc/caddy/config.json

I figured it out, found and deleted the autosave.json file in /var/lib/caddy/.config/caddy/autosave.json

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.