新增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

View File

@@ -7,10 +7,16 @@ import (
)
type AppConfig struct {
Port int `yaml:"port"`
AppName string `yaml:"appName"`
SiteFileDir string `yaml:"siteFileDir"`
PackSiteFileDir string `yaml:"packSiteFileDir"`
Port int `yaml:"port"`
AppName string `yaml:"appName"`
SiteFileDir string `yaml:"siteFileDir"`
PackSiteFileDir string `yaml:"packSiteFileDir"`
Nginx NginxConfig `yaml:"nginx"`
}
type NginxConfig struct {
NginxPath string `yaml:"nginxPath"`
NginxConfPath string `yaml:"nginxConfPath"`
}
func LoadConfig() (*AppConfig, error) {