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

fix: 修复面板入口信息错误

This commit is contained in:
耗子
2023-12-22 21:14:33 +08:00
parent 35d2838036
commit c884dd6fd7
2 changed files with 2 additions and 2 deletions

View File

@@ -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'`)

View File

@@ -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