Caddyfile, docker-compose

I've got this Caddyfile
develupah.com {
    route /api* {
        reverse_proxy localhost:6060
    }
}

And it seems to block my SSL cert in development
Any way to tell it to just, not use this in development with environment variables?
And tell it to do something else but only in devleopment?
Like
api.localhost {
    route /api* {
        reverse_proxy localhost:6060
    }
}
Was this page helpful?