1. The problem I’m having:
Cant start a caddy server. Caddy fmt keeps telling me there is an error with the the caddy file
2. Error messages and/or full log output:
2023/07/01 15:30:31.662 INFO using adjacent Caddyfile
2023/07/01 15:30:31.664 WARN Caddyfile input is not formatted; run the 'caddy fmt' command to fix inconsistencies {"adapter": "caddyfile", "file": "Caddyfile", "line": 2}
Error: Caddyfile:2: Caddyfile input is not formatted
3. Caddy version:
v2.6.4 h1:2hwYqiRwk1tf3VruhMpLcYTg+11fCdr8S3jhNAdnPy8=
4. How I installed and ran Caddy:
installed it from the docs - the latest stable version
sudo apt install -y debian-keyring debian-archive-keyring apt-transport-https
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/gpg.key' | sudo gpg --dearmor -o /usr/share/keyrings/caddy-stable-archive-keyring.gpg
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/debian.deb.txt' | sudo tee /etc/apt/sources.list.d/caddy-stable.list
sudo apt update
sudo apt install caddy
a. System environment:
Ubuntu 22.04, not docker
b. Command:
systemctl start caddy
sudo caddy reload
Second command to format the file
caddy fmt
c. Service/unit/compose file:
PASTE OVER THIS, BETWEEN THE ``` LINES.
Please use the preview pane to ensure it looks nice.
d. My complete Caddy config:
indrajeethaldar.com {
respond "Foo!"
}
5. Links to relevant resources:
None really im super confused because this was working last night?