mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2024-12-15 17:29:00 +08:00
70 lines
1.7 KiB
Go
70 lines
1.7 KiB
Go
package response
|
|
|
|
import (
|
|
"github.com/1Panel-dev/1Panel/backend/app/model"
|
|
)
|
|
|
|
type WebsiteDTO struct {
|
|
model.Website
|
|
ErrorLogPath string `json:"errorLogPath"`
|
|
AccessLogPath string `json:"accessLogPath"`
|
|
SitePath string `json:"sitePath"`
|
|
AppName string `json:"appName"`
|
|
RuntimeName string `json:"runtimeName"`
|
|
}
|
|
|
|
type WebsiteOption struct {
|
|
ID uint `json:"id"`
|
|
PrimaryDomain string `json:"primaryDomain"`
|
|
Alias string `json:"alias"`
|
|
}
|
|
|
|
type WebsitePreInstallCheck struct {
|
|
Name string `json:"name"`
|
|
Status string `json:"status"`
|
|
Version string `json:"version"`
|
|
AppName string `json:"appName"`
|
|
}
|
|
|
|
type WebsiteNginxConfig struct {
|
|
Enable bool `json:"enable"`
|
|
Params []NginxParam `json:"params"`
|
|
}
|
|
|
|
type WebsiteWafConfig struct {
|
|
Enable bool `json:"enable"`
|
|
Content string `json:"content"`
|
|
}
|
|
|
|
type WebsiteHTTPS struct {
|
|
Enable bool `json:"enable"`
|
|
HttpConfig string `json:"httpConfig"`
|
|
SSL model.WebsiteSSL `json:"SSL"`
|
|
SSLProtocol []string `json:"SSLProtocol"`
|
|
Algorithm string `json:"algorithm"`
|
|
}
|
|
|
|
type WebsiteLog struct {
|
|
Enable bool `json:"enable"`
|
|
Content string `json:"content"`
|
|
End bool `json:"end"`
|
|
Path string `json:"path"`
|
|
}
|
|
|
|
type PHPConfig struct {
|
|
Params map[string]string `json:"params"`
|
|
DisableFunctions []string `json:"disableFunctions"`
|
|
UploadMaxSize string `json:"uploadMaxSize"`
|
|
}
|
|
|
|
type NginxRewriteRes struct {
|
|
Content string `json:"content"`
|
|
}
|
|
|
|
type WebsiteDirConfig struct {
|
|
Dirs []string `json:"dirs"`
|
|
User string `json:"user"`
|
|
UserGroup string `json:"userGroup"`
|
|
Msg string `json:"msg"`
|
|
}
|