1. Caddy version (caddy version
):
2.3.0
2. How I run Caddy:
in Docker on a Synology NAS
a. System environment:
Synology DSM7
b. Command:
I click the toggle on the container to start caddy
d. My complete Caddyfile or JSON config:
# The Caddyfile is an easy way to configure your Caddy web server.
#
# Unless the file starts with a global options block, the first
# uncommented line is always the address of your site.
#
# To use your own domain name (with automatic HTTPS), first make
# sure your domain's A/AAAA DNS records are properly pointed to
# this machine's public IP, then replace the line below with your
# domain name.
ian.gay
# Set this path to your site's directory.
root * /usr/share/caddy
# Enable the static file server.
file_server
hass.ian.gay {
reverse_proxy 192.168.1.198:8123
}
syno.ian.gay {
reverse_proxy 192.168.1.201:5001
}
3. The problem I’m having:
Neither reverse proxy works. The first errors out, the second shows the default caddy homepage.
4. Error messages and/or full log output:
2021/04/26 21:22:02.543 INFO using provided configuration {“config_file”: “/etc/caddy/Caddyfile”, “config_adapter”: “caddyfile”} stdout
21:22:02 2021/04/26 21:22:02.547 INFO admin admin endpoint started {“address”: “tcp/localhost:2019”, “enforce_origin”: false, “origins”: [“localhost:2019”, “[::1]:2019”, “127.0.0.1:2019”]} stdout
21:22:02 2021/04/26 21:22:02.548 INFO http server is listening only on the HTTP port, so no automatic HTTPS will be applied to this server {“server_name”: “srv0”, “http_port”: 80} stdout
21:22:02 2021/04/26 21:22:02.552 INFO tls.cache.maintenance started background certificate maintenance {“cache”: “0xc000282000”} stdout
21:22:02 2021/04/26 21:22:02.553 INFO tls cleaned up storage units stdout
21:22:02 2021/04/26 21:22:02.582 INFO autosaved config {“file”: “/config/caddy/autosave.json”} stdout
21:22:02 2021/04/26 21:22:02.582 INFO serving initial configuration
5. What I already tried:
multiple different caddyfiles and even other reverse proxies like the built-in synology one and NGINX. My root domain goes to a different machine but many subdomains redirect here.