mirror of
https://github.com/acepanel/panel.git
synced 2026-02-04 17:17:13 +08:00
feat: 修改目录
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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"`
|
||||
|
||||
@@ -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