feat: 创建应用放开相应端口 (#520)

This commit is contained in:
zhengkunwang223
2023-04-06 09:16:16 +00:00
committed by GitHub
parent 1b5387dc5a
commit a481a8b322
+5
View File
@@ -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
}