2022-12-13 17:20:13 +08:00
|
|
|
package response
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/1Panel-dev/1Panel/backend/app/model"
|
|
|
|
)
|
|
|
|
|
|
|
|
type WebsiteDTO struct {
|
|
|
|
model.Website
|
2022-12-26 11:42:37 +08:00
|
|
|
ErrorLogPath string `json:"errorLogPath"`
|
|
|
|
AccessLogPath string `json:"accessLogPath"`
|
2022-12-26 18:32:13 +08:00
|
|
|
SitePath string `json:"sitePath"`
|
2023-03-09 17:50:47 +08:00
|
|
|
AppName string `json:"appName"`
|
2022-12-13 17:20:13 +08: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 18:54:46 +08:00
|
|
|
Enable bool `json:"enable"`
|
|
|
|
Params []NginxParam `json:"params"`
|
2022-12-13 17:20:13 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
type WebsiteWafConfig struct {
|
|
|
|
Enable bool `json:"enable"`
|
|
|
|
FilePath string `json:"filePath"`
|
|
|
|
Content string `json:"content"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type WebsiteHTTPS struct {
|
2022-12-28 18:59:05 +08: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 17:20:13 +08:00
|
|
|
}
|
2022-12-30 17:39:17 +08:00
|
|
|
|
|
|
|
type WebsiteLog struct {
|
|
|
|
Enable bool `json:"enable"`
|
|
|
|
Content string `json:"content"`
|
|
|
|
}
|
2023-04-06 00:09:58 +08:00
|
|
|
|
|
|
|
type PHPConfig struct {
|
|
|
|
Params map[string]string `json:"params"`
|
|
|
|
}
|