2024-07-23 14:48:37 +08:00
|
|
|
package response
|
|
|
|
|
|
|
|
import "github.com/1Panel-dev/1Panel/agent/app/dto"
|
|
|
|
|
|
|
|
type NginxStatus struct {
|
|
|
|
Active string `json:"active"`
|
|
|
|
Accepts string `json:"accepts"`
|
|
|
|
Handled string `json:"handled"`
|
|
|
|
Requests string `json:"requests"`
|
|
|
|
Reading string `json:"reading"`
|
|
|
|
Writing string `json:"writing"`
|
|
|
|
Waiting string `json:"waiting"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type NginxParam struct {
|
|
|
|
Name string `json:"name"`
|
|
|
|
Params []string `json:"params"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type NginxAuthRes struct {
|
|
|
|
Enable bool `json:"enable"`
|
|
|
|
Items []dto.NginxAuth `json:"items"`
|
|
|
|
}
|
|
|
|
|
2024-08-09 18:00:39 +08:00
|
|
|
type NginxPathAuthRes struct {
|
|
|
|
dto.NginxPathAuth
|
|
|
|
}
|
|
|
|
|
2024-07-23 14:48:37 +08:00
|
|
|
type NginxAntiLeechRes struct {
|
|
|
|
Enable bool `json:"enable"`
|
|
|
|
Extends string `json:"extends"`
|
|
|
|
Return string `json:"return"`
|
|
|
|
ServerNames []string `json:"serverNames"`
|
|
|
|
Cache bool `json:"cache"`
|
|
|
|
CacheTime int `json:"cacheTime"`
|
|
|
|
CacheUint string `json:"cacheUint"`
|
|
|
|
NoneRef bool `json:"noneRef"`
|
|
|
|
LogEnable bool `json:"logEnable"`
|
|
|
|
Blocked bool `json:"blocked"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type NginxRedirectConfig struct {
|
|
|
|
WebsiteID uint `json:"websiteID"`
|
|
|
|
Name string `json:"name"`
|
|
|
|
Domains []string `json:"domains"`
|
|
|
|
KeepPath bool `json:"keepPath"`
|
|
|
|
Enable bool `json:"enable"`
|
|
|
|
Type string `json:"type"`
|
|
|
|
Redirect string `json:"redirect"`
|
|
|
|
Path string `json:"path"`
|
|
|
|
Target string `json:"target"`
|
|
|
|
FilePath string `json:"filePath"`
|
|
|
|
Content string `json:"content"`
|
|
|
|
RedirectRoot bool `json:"redirectRoot"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type NginxFile struct {
|
|
|
|
Content string `json:"content"`
|
|
|
|
}
|
2024-09-12 18:06:22 +08:00
|
|
|
|
|
|
|
type NginxProxyCache struct {
|
|
|
|
Open bool `json:"open"`
|
|
|
|
CacheLimit float64 `json:"cacheLimit"`
|
|
|
|
CacheLimitUnit string `json:"cacheLimitUnit" `
|
|
|
|
ShareCache int `json:"shareCache" `
|
|
|
|
ShareCacheUnit string `json:"shareCacheUnit" `
|
|
|
|
CacheExpire int `json:"cacheExpire" `
|
|
|
|
CacheExpireUnit string `json:"cacheExpireUnit" `
|
|
|
|
}
|