mirror of
https://github.com/glanceapp/glance.git
synced 2024-11-22 00:13:55 +01:00
Add separate URL for monitor check
This commit is contained in:
parent
f5427310e8
commit
871ba619a3
@ -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{
|
||||
|
Loading…
Reference in New Issue
Block a user