implement cache.advertise_url

This commit is contained in:
2024-09-06 14:00:33 +02:00
parent a7080f5457
commit 607eeb04d6
6 changed files with 16 additions and 7 deletions

View File

@@ -38,6 +38,7 @@ type Cache struct {
Enabled *bool `yaml:"enabled"` // Enabled indicates whether caching is enabled. It is a pointer to distinguish between false and not set. If not set, it will be true.
Dir string `yaml:"dir"` // Dir specifies the directory path for caching.
Host string `yaml:"host"` // Host specifies the caching host.
AdvertiseUrl string `yaml:"advertise_url"` // Host specifies the caching host.
Port uint16 `yaml:"port"` // Port specifies the caching port.
ExternalServer string `yaml:"external_server"` // ExternalServer specifies the URL of external cache server
}