2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 10:17:17 +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

@@ -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")
// 初始化时区