2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-05 06:57:19 +08:00
Files
panel/app/services/website.go
耗子 c4199dad4e feat: update
1. panel entrance
2. optimize cli
3. website service init
2023-07-08 02:26:42 +08:00

46 lines
1.4 KiB
Go

// Package services 网站服务
package services
import "panel/app/models"
type Website interface {
List() ([]models.Website, error)
}
type PanelWebsite struct {
Name string `json:"name"`
Domain string `json:"domain"`
Path string `json:"path"`
Php string `json:"php"`
Ssl string `json:"ssl"`
Remark string `json:"remark"`
Db bool `json:"db"`
DbType string `json:"db_type"`
DbName string `json:"db_name"`
DbUser string `json:"db_user"`
DbPassword string `json:"db_password"`
}
// WebsiteSetting 网站设置
type WebsiteSetting struct {
Name string `json:"name"`
Ports []string `json:"ports"`
Domains []string `json:"domains"`
Root string `json:"root"`
Path string `json:"path"`
Index string `json:"index"`
OpenBasedir bool `json:"open_basedir"`
Ssl bool `json:"ssl"`
SslCertificate string `json:"ssl_certificate"`
SslCertificateKey string `json:"ssl_certificate_key"`
HttpRedirect bool `json:"http_redirect"`
Hsts bool `json:"hsts"`
Waf bool `json:"waf"`
WafMode string `json:"waf_mode"`
WafCcDeny string `json:"waf_cc_deny"`
WafCache string `json:"waf_cache"`
Rewrite string `json:"rewrite"`
Raw string `json:"raw"`
Log string `json:"log"`
}