2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 17:17:13 +08:00

feat: 修改目录

This commit is contained in:
2025-12-01 17:01:50 +08:00
parent 8b69dcde0e
commit 6c2b0c2490
3 changed files with 3 additions and 4 deletions

View File

@@ -3,7 +3,6 @@ app:
key: a-long-string-with-32-characters
locale: zh_CN
timezone: Asia/Shanghai
root: /www
http:
debug: false
port: 8888

View File

@@ -11,7 +11,7 @@ import (
type Website struct {
ID uint `gorm:"primaryKey" json:"id"`
Name string `gorm:"not null;default:'';unique" json:"name"`
Type string `gorm:"not null;default:'php'" json:"type"`
Type string `gorm:"not null;default:'static'" json:"type"`
Status bool `gorm:"not null;default:true" json:"status"`
Path string `gorm:"not null;default:''" json:"path"`
Https bool `gorm:"not null;default:false" json:"https"`

View File

@@ -13,7 +13,7 @@ import (
)
func NewConf() (*koanf.Koanf, error) {
config := "/usr/local/etc/panel/config.yml"
config := "/opt/ace/panel/config.yml"
if !io.Exists(config) {
config = "config.yml"
}
@@ -33,7 +33,7 @@ func initGlobal(conf *koanf.Koanf) {
log.Fatalf("panel app key must be 32 characters")
}
app.Root = conf.MustString("app.root")
app.Root = "/opt/ace"
app.Locale = conf.MustString("app.locale")
// 初始化时区