mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-08-09 05:57:20 +08:00
FEAT: Allow client side TLS for Docker hosts (#2852)
* FEAT: Allow client side TLS for Docker hosts Inlcude TLS certificate in HTTPS requests when certificate files are locally available to Kuma for a host. * fix: refactor to satisfy linter requirements * fix: linter
This commit is contained in:
@@ -720,6 +720,9 @@ class Monitor extends BeanModel {
|
||||
options.socketPath = dockerHost._dockerDaemon;
|
||||
} else if (dockerHost._dockerType === "tcp") {
|
||||
options.baseURL = DockerHost.patchDockerURL(dockerHost._dockerDaemon);
|
||||
options.httpsAgent = CacheableDnsHttpAgent.getHttpsAgent(
|
||||
DockerHost.getHttpsAgentOptions(dockerHost._dockerType, options.baseURL)
|
||||
);
|
||||
}
|
||||
|
||||
log.debug("monitor", `[${this.name}] Axios Request`);
|
||||
|
Reference in New Issue
Block a user