新增nginx本地网站托管模块

This commit is contained in:
zyj
2025-11-22 17:49:24 +08:00
parent 14b24c215a
commit 6212fa372c
6 changed files with 1180 additions and 13 deletions

12
types/site_config.go Normal file
View File

@@ -0,0 +1,12 @@
package types
// NginxSiteConfig 站点配置结构
type NginxSiteConfig struct {
ID string `json:"id"` // 站点唯一ID
Name string `json:"name"` // 站点名称
Domains []string `json:"domains"` // 域名列表
Port int `json:"port"` // 监听端口
Path string `json:"path"` // 网站根目录路径
Index string `json:"index"` // 默认首页文件
Enabled bool `json:"enabled"` // 是否启用
}