Add separate URL for monitor check

This commit is contained in:
MrExplode 2024-08-03 14:06:52 +02:00
parent f5427310e8
commit 871ba619a3
No known key found for this signature in database
GPG Key ID: 1B90A9BD4F42D6D9

View File

@ -9,6 +9,7 @@ import (
type SiteStatusRequest struct {
URL string `yaml:"url"`
CheckURL string `yaml:"check_url"`
AllowInsecure bool `yaml:"allow-insecure"`
}
@ -20,7 +21,7 @@ type SiteStatus struct {
}
func getSiteStatusTask(statusRequest *SiteStatusRequest) (SiteStatus, error) {
request, err := http.NewRequest(http.MethodGet, statusRequest.URL, nil)
request, err := http.NewRequest(http.MethodGet, statusRequest.CheckURL, nil)
if err != nil {
return SiteStatus{