include image proxy url and whether registration is disabled

This commit is contained in:
Bnyro 2023-07-28 18:17:58 +02:00
parent bb978ea3a3
commit 119fd1c7c7
1 changed files with 27 additions and 21 deletions

View File

@ -38,10 +38,14 @@ type Instance struct {
LastChecked int64 `json:"last_checked"`
Cache bool `json:"cache"`
S3Enabled bool `json:"s3_enabled"`
ImageProxyUrl string `json:"image_proxy_url"`
RegistrationDisabled bool `json:"registration_disabled"`
}
type FrontendConfig struct {
S3Enabled bool `json:"s3Enabled"`
ImageProxyUrl string `json:"imageProxy"`
RegistrationDisabled bool `json:"registrationDisabled"`
}
var client = http.Client{
@ -192,6 +196,8 @@ func getInstanceDetails(split []string, latest string) (Instance, error) {
UpToDate: strings.Contains(latest, hash),
Cache: cacheWorking,
S3Enabled: config.S3Enabled,
ImageProxyUrl: config.ImageProxyUrl,
RegistrationDisabled: config.RegistrationDisabled,
}, nil
}