mirror of https://github.com/1Panel-dev/1Panel
feat: 创建应用放开相应端口 (#520)
parent
1b5387dc5a
commit
a481a8b322
|
@ -318,6 +318,11 @@ func (a AppService) Install(ctx context.Context, req request.AppInstallCreate) (
|
|||
}
|
||||
go upApp(ctx, appInstall.GetComposePath(), appInstall)
|
||||
go updateToolApp(appInstall)
|
||||
ports := []int{appInstall.HttpPort}
|
||||
if appInstall.HttpsPort > 0 {
|
||||
ports = append(ports, appInstall.HttpsPort)
|
||||
}
|
||||
go OperateFirewallPort(nil, ports)
|
||||
return &appInstall, nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue