move x-accel into local storage configuration
All checks were successful
build container / build-container (push) Successful in 5m45s
run go test / test (push) Successful in 3m15s

This commit is contained in:
2025-03-03 09:15:37 +08:00
parent 504a809c16
commit 83dfcba4ae
4 changed files with 33 additions and 29 deletions

View File

@ -36,17 +36,18 @@ func (upstream Upstream) GetPath(orig string) (string, bool, error) {
type LocalStorage struct {
Path string `yaml:"path"`
TemporaryFilePattern string `yaml:"temporary-file-pattern"`
Accel Accel `yaml:"accel"`
}
type Accel struct {
EnableByHeader string `yaml:"enable-by-header"`
ResponseWithHeaders []string `yaml:"response-with-headers"`
EnableByHeader string `yaml:"enable-by-header"`
RespondWithHeaders []string `yaml:"respond-with-headers"`
}
type Storage struct {
Type string `yaml:"type"`
Local *LocalStorage `yaml:"local"`
Accel Accel `yaml:"accel"`
}
type CachePolicyOnPath struct {