diff --git a/README.md b/README.md index 06ff034..b2d9bd6 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,8 @@ >https://hub.docker.com/r/zimbres/uptime-kuma-remote-probe +>**Be aware** : If you use the :latest tag, it doesn't point to the latest version of UK. The latest version is 6.0.2 + --- Services configuration is done by editing the file appsettings.json and restarting application. @@ -21,7 +23,7 @@ Services configuration is done by editing the file appsettings.json and restarti --- -From version > 3.0 the services configuration is not done by adding it to appsettings.json, services to be executed on the probe will be auto discovered by tags set in UK. +**Please Note** : From version > 3.0 the services configuration is not done by adding it to appsettings.json, services to be executed on the probe will be auto discovered by tags set in UK. Username and Password for UK need to be set on appsettings.json "Configurations.Username/Password" also UK Url. Account with 2FA is not supported. @@ -33,6 +35,7 @@ Ex: - Tag Name: "Domain" / Tag Value: "domain.com" - Tag Name: "Method" / Tag Value: "GET" - Tag Name: "CertificateExpiration" / Tag Value: "7" +- Tag Name: "IgnoreSSL" / Tag Value: "False" ![image](https://github.com/zimbres/UptimeKumaRemoteProbe/assets/29772043/a4a9fd07-4f33-4f4f-9c27-24b59be42b28) diff --git a/UptimeKumaRemoteProbe/Services/HttpService.cs b/UptimeKumaRemoteProbe/Services/HttpService.cs index 82516e8..2bab8a3 100644 --- a/UptimeKumaRemoteProbe/Services/HttpService.cs +++ b/UptimeKumaRemoteProbe/Services/HttpService.cs @@ -46,4 +46,4 @@ public async Task CheckHttpAsync(Endpoint endpoint) await _pushService.PushAsync(endpoint.PushUri, stopwatch.ElapsedMilliseconds); } } -} +} \ No newline at end of file diff --git a/UptimeKumaRemoteProbe/Worker.cs b/UptimeKumaRemoteProbe/Worker.cs index d050629..8ca7f23 100644 --- a/UptimeKumaRemoteProbe/Worker.cs +++ b/UptimeKumaRemoteProbe/Worker.cs @@ -108,7 +108,8 @@ private List ParseEndpoints(List monitors) Brand = monitor.Tags.Where(w => w.Name == "Brand").Select(s => s.Value).FirstOrDefault() ?? string.Empty, Port = int.Parse(monitor.Tags.Where(w => w.Name == "Port").Select(s => s.Value).FirstOrDefault() ?? "0"), Domain = monitor.Tags.Where(w => w.Name == "Domain").Select(s => s.Value).FirstOrDefault() ?? string.Empty, - CertificateExpiration = int.Parse(monitor.Tags.Where(w => w.Name == "CertificateExpiration").Select(s => s.Value).FirstOrDefault() ?? "3") + CertificateExpiration = int.Parse(monitor.Tags.Where(w => w.Name == "CertificateExpiration").Select(s => s.Value).FirstOrDefault() ?? "3"), + IgnoreSSL = bool.Parse(monitor.Tags.Where(w => w.Name == "IgnoreSSL").Select(s => s.Value).FirstOrDefault() ?? "False") }; endpoints.Add(endpoint); }