move x-accel into local storage configuration
This commit is contained in:
@ -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 {
|
||||
|
Reference in New Issue
Block a user