mirror of
https://github.com/acepanel/panel.git
synced 2026-02-04 10:17:17 +08:00
feat: 修改目录
This commit is contained in:
@@ -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")
|
||||
|
||||
// 初始化时区
|
||||
|
||||
Reference in New Issue
Block a user