2022-12-13 10:54:46 +00:00
|
|
|
package response
|
|
|
|
|
2023-04-25 10:10:17 +00:00
|
|
|
import "github.com/1Panel-dev/1Panel/backend/app/dto"
|
|
|
|
|
2022-12-13 10:54:46 +00:00
|
|
|
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"`
|
|
|
|
}
|
2023-04-25 10:10:17 +00:00
|
|
|
|
|
|
|
type NginxAuthRes struct {
|
|
|
|
Enable bool `json:"enable"`
|
|
|
|
Items []dto.NginxAuth `json:"items"`
|
|
|
|
}
|
2023-05-26 02:40:21 +00: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"`
|
|
|
|
}
|
2023-07-22 14:02:21 +00:00
|
|
|
|
|
|
|
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"`
|
|
|
|
}
|