2022-12-13 09:20:13 +00:00
|
|
|
package response
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/1Panel-dev/1Panel/backend/app/model"
|
|
|
|
)
|
|
|
|
|
|
|
|
type WebsiteDTO struct {
|
|
|
|
model.Website
|
2022-12-26 03:42:37 +00:00
|
|
|
ErrorLogPath string `json:"errorLogPath"`
|
|
|
|
AccessLogPath string `json:"accessLogPath"`
|
2022-12-26 10:32:13 +00:00
|
|
|
SitePath string `json:"sitePath"`
|
2023-03-09 09:50:47 +00:00
|
|
|
AppName string `json:"appName"`
|
2023-04-10 08:24:26 +00:00
|
|
|
RuntimeName string `json:"runtimeName"`
|
2022-12-13 09:20:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type WebsitePreInstallCheck struct {
|
|
|
|
Name string `json:"name"`
|
|
|
|
Status string `json:"status"`
|
|
|
|
Version string `json:"version"`
|
|
|
|
AppName string `json:"appName"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type WebsiteNginxConfig struct {
|
2022-12-13 10:54:46 +00:00
|
|
|
Enable bool `json:"enable"`
|
|
|
|
Params []NginxParam `json:"params"`
|
2022-12-13 09:20:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type WebsiteWafConfig struct {
|
2023-08-02 14:38:32 +00:00
|
|
|
Enable bool `json:"enable"`
|
|
|
|
Content string `json:"content"`
|
2022-12-13 09:20:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type WebsiteHTTPS struct {
|
2022-12-28 10:59:05 +00:00
|
|
|
Enable bool `json:"enable"`
|
|
|
|
HttpConfig string `json:"httpConfig"`
|
|
|
|
SSL model.WebsiteSSL `json:"SSL"`
|
|
|
|
SSLProtocol []string `json:"SSLProtocol"`
|
|
|
|
Algorithm string `json:"algorithm"`
|
2022-12-13 09:20:13 +00:00
|
|
|
}
|
2022-12-30 09:39:17 +00:00
|
|
|
|
|
|
|
type WebsiteLog struct {
|
|
|
|
Enable bool `json:"enable"`
|
|
|
|
Content string `json:"content"`
|
2023-08-25 15:42:14 +00:00
|
|
|
End bool `json:"end"`
|
2023-09-15 10:02:16 +00:00
|
|
|
Path string `json:"path"`
|
2022-12-30 09:39:17 +00:00
|
|
|
}
|
2023-04-05 16:09:58 +00:00
|
|
|
|
|
|
|
type PHPConfig struct {
|
2023-05-24 08:31:18 +00:00
|
|
|
Params map[string]string `json:"params"`
|
|
|
|
DisableFunctions []string `json:"disableFunctions"`
|
2023-05-24 10:38:50 +00:00
|
|
|
UploadMaxSize string `json:"uploadMaxSize"`
|
2023-04-05 16:09:58 +00:00
|
|
|
}
|
2023-04-14 08:01:06 +00:00
|
|
|
|
|
|
|
type NginxRewriteRes struct {
|
|
|
|
Content string `json:"content"`
|
|
|
|
}
|
2023-09-05 14:28:11 +00:00
|
|
|
|
|
|
|
type WebsiteDirConfig struct {
|
|
|
|
Dirs []string `json:"dirs"`
|
|
|
|
User string `json:"user"`
|
|
|
|
UserGroup string `json:"userGroup"`
|
|
|
|
Msg string `json:"msg"`
|
|
|
|
}
|