Skip to content

Commit

Permalink
Merge pull request #8 from oumlala/main
Browse files Browse the repository at this point in the history
Add IgnoreSSL tag
  • Loading branch information
zimbres authored Jun 12, 2024
2 parents c71e406 + 63b37f8 commit 0f9d25f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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.

Expand All @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion UptimeKumaRemoteProbe/Services/HttpService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,4 @@ public async Task CheckHttpAsync(Endpoint endpoint)
await _pushService.PushAsync(endpoint.PushUri, stopwatch.ElapsedMilliseconds);
}
}
}
}
3 changes: 2 additions & 1 deletion UptimeKumaRemoteProbe/Worker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,8 @@ private List<Endpoint> ParseEndpoints(List<Monitors> 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);
}
Expand Down

0 comments on commit 0f9d25f

Please sign in to comment.