[Agent][Deploy] - srs part

This commit is contained in:
zeaslity
2024-06-28 10:22:21 +08:00
parent 4c6bb8750a
commit 657b771475
49 changed files with 36146 additions and 34264 deletions

View File

@@ -38,6 +38,15 @@ type CmiiFrontendConfig struct {
ClientId string
}
type CmiiSrsConfig struct {
z_dep.CommonEnvironmentConfig
RtmpPort string
WebRTCPort string
SrtPort string
WebApiPort string
MySQLK8sAdminPassword string
}
type IngressConfig struct {
z_dep.CommonEnvironmentConfig
FrontendShortNameMaps map[string]string
@@ -139,6 +148,16 @@ func (ingress *IngressConfig) IngressDeploy(commonEnv *z_dep.CommonEnvironmentCo
return true
}
func (srsConfig *CmiiSrsConfig) SRSDeploy(commonEnv *z_dep.CommonEnvironmentConfig) bool {
// copy
utils.CopySameFields(commonEnv, srsConfig)
if !z_dep.ParseEnvToApplyFile(srsConfig, CmiiSrsTemplate, z_dep.SRSApplyFilePath) {
return false
}
return true
}
func IngressDeploy(commonEnv *z_dep.CommonEnvironmentConfig) bool {
if !commonEnv.ParseCommonEnvToApplyFile(CmiiFrontendIngressTemplate, z_dep.IngresApplyFilePath) {
return false