mirror of
https://github.com/glanceapp/glance.git
synced 2025-06-22 10:51:24 +02:00
Add separate URL for monitor check
This commit is contained in:
parent
f5427310e8
commit
871ba619a3
@ -9,6 +9,7 @@ import (
|
|||||||
|
|
||||||
type SiteStatusRequest struct {
|
type SiteStatusRequest struct {
|
||||||
URL string `yaml:"url"`
|
URL string `yaml:"url"`
|
||||||
|
CheckURL string `yaml:"check_url"`
|
||||||
AllowInsecure bool `yaml:"allow-insecure"`
|
AllowInsecure bool `yaml:"allow-insecure"`
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -20,7 +21,7 @@ type SiteStatus struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func getSiteStatusTask(statusRequest *SiteStatusRequest) (SiteStatus, error) {
|
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 {
|
if err != nil {
|
||||||
return SiteStatus{
|
return SiteStatus{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user