feat(api): add HTTPS support with TLS certificate configuration (#1704)