diff --git a/app/console/commands/panel.go b/app/console/commands/panel.go index db7d36da..415a725f 100644 --- a/app/console/commands/panel.go +++ b/app/console/commands/panel.go @@ -145,7 +145,7 @@ func (receiver *Panel) Handle(ctx console.Context) error { color.Greenln("密码: " + password) color.Greenln("面板端口: " + port) color.Greenln("面板入口: " + facades.Config().GetString("http.entrance")) - color.Greenln("面板地址: " + protocol + "://" + ip + ":" + port + "/" + facades.Config().GetString("http.entrance")) + color.Greenln("面板地址: " + protocol + "://" + ip + ":" + port + facades.Config().GetString("http.entrance")) case "getPort": port, err := tools.Exec(`cat /www/panel/panel.conf | grep APP_PORT | awk -F '=' '{print $2}' | tr -d '\n'`) diff --git a/scripts/install_panel.sh b/scripts/install_panel.sh index 3719a53d..782b8346 100644 --- a/scripts/install_panel.sh +++ b/scripts/install_panel.sh @@ -243,7 +243,7 @@ Init_Panel() { # 设置面板 entrance=$(cat /dev/urandom | head -n 16 | md5sum | head -c 6) - sed -i "s!APP_ENTRANCE=.*!APP_ENTRANCE=${entrance}!g" panel.conf + sed -i "s!APP_ENTRANCE=.*!APP_ENTRANCE=/${entrance}!g" panel.conf ${setup_Path}/panel/panel --env="panel.conf" artisan key:generate ${setup_Path}/panel/panel --env="panel.conf" artisan jwt:secret ${setup_Path}/panel/panel --env="panel.conf" artisan migrate