# Caddy reverse proxy with automatic HTTPS for both services.
# Point both DNS records (chat + api) to this server IP first, then run Caddy. Certs are fetched automatically once DNS resolves.
chat.YOUR-DOMAIN {
    reverse_proxy 127.0.0.1:3000
}
api.YOUR-DOMAIN {
    reverse_proxy 127.0.0.1:5678
}