From 98078859a47557491fc11182d0e757eb1ac5d4b0 Mon Sep 17 00:00:00 2001 From: OUMLALA Omar Date: Wed, 12 Jun 2024 11:00:14 +0200 Subject: [PATCH 1/2] Added IgnoreSSL parameter --- README.md | 4 +++- UptimeKumaRemoteProbe/Services/HttpService.cs | 2 +- UptimeKumaRemoteProbe/Worker.cs | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 06ff034..f847880 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,7 @@ >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.0 --- Services configuration is done by editing the file appsettings.json and restarting application. @@ -21,7 +22,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 +34,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); } From 63b37f886c9c43387bbf4a9333a25cbfdbd1cd0d Mon Sep 17 00:00:00 2001 From: oumlala Date: Wed, 12 Jun 2024 11:03:13 +0200 Subject: [PATCH 2/2] Update README.md --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index f847880..b2d9bd6 100644 --- a/README.md +++ b/README.md @@ -11,7 +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.0 +>**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.