1. Caddy version:
2.6.2
2. How I installed, and run Caddy:
apt install caddy
caddy run
a. System environment:
ubuntu 20.04
systemd
b. Command:
caddy run
Paste command here.
c. Service/unit/compose file:
Paste full file contents here.
Make sure backticks stay on their own lines,
and the post looks nice in the preview pane.
d. My complete Caddy config:
Paste your config here, replacing this text.
Use `caddy fmt` to make it readable.
DO NOT REDACT anything except credentials.
LEAVE DOMAIN NAMES INTACT.
Make sure the backticks stay on their own lines.
ha.smart-iot.ga {
encode gzip
tls /etc/letsencrypt/live/smart-iot.ga/fullchain.pem /etc/letsencrypt/live/smart-iot.ga/privkey.pem
reverse_proxy http://ha.smart-iot.ga:8033
}
za.smart-iot.ga {
encode gzip
tls /etc/letsencrypt/live/smart-iot.ga/fullchain.pem /etc/letsencrypt/live/smart-iot.ga/privkey.pem
reverse_proxy localhost:8080
}
3. The problem I’m having:
How to configure caddyfile to only be accessed through a domain name?And disable IP address access to server?
4. Error messages and/or full log output:
Paste logs/commands/output here.
USE THE PREVIEW PANE TO MAKE SURE IT LOOKS NICELY FORMATTED.