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

@ -55,9 +55,9 @@ func configFromFile(path string) (*cacheproxy.Config, error) {
Local: &cacheproxy.LocalStorage{
Path: "./data",
TemporaryFilePattern: "temp.*",
},
Accel: cacheproxy.Accel{
ResponseWithHeaders: []string{"X-Sendfile", "X-Accel-Redirect"},
Accel: cacheproxy.Accel{
RespondWithHeaders: []string{"X-Sendfile", "X-Accel-Redirect"},
},
},
},
Misc: cacheproxy.MiscConfig{