Add separate URL for monitor check

pull/177/head
MrExplode 2024-08-03 14:06:52 +07:00
parent f5427310e8
commit 871ba619a3
No known key found for this signature in database
GPG Key ID: 1B90A9BD4F42D6D9
1 changed files with 2 additions and 1 deletions

@ -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{