mirror of https://github.com/OpenVidu/openvidu.git
deployment: Add openvidu edition as CF parameter
parent
4d004e4a9e
commit
7763f331bc
|
@ -59,7 +59,6 @@ Parameters:
|
||||||
Type: String
|
Type: String
|
||||||
|
|
||||||
# OpenVidu Configuration
|
# OpenVidu Configuration
|
||||||
|
|
||||||
OpenViduLicense:
|
OpenViduLicense:
|
||||||
Description: "Visit https://openvidu.io/account"
|
Description: "Visit https://openvidu.io/account"
|
||||||
Type: String
|
Type: String
|
||||||
|
@ -67,6 +66,14 @@ Parameters:
|
||||||
NoEcho: true
|
NoEcho: true
|
||||||
ConstraintDescription: OpenVidu Pro License is mandatory
|
ConstraintDescription: OpenVidu Pro License is mandatory
|
||||||
|
|
||||||
|
OpenViduEdition:
|
||||||
|
Description: "Visit https://docs.openvidu.io/en/stable/deployment/#openvidu-editions"
|
||||||
|
Type: String
|
||||||
|
AllowedValues:
|
||||||
|
- pro
|
||||||
|
- enterprise
|
||||||
|
Default: pro
|
||||||
|
|
||||||
OpenViduSecret:
|
OpenViduSecret:
|
||||||
Description: "Secret to connect to this OpenVidu Platform. Cannot be empty and must contain only alphanumeric characters [a-zA-Z0-9], hypens ('-') and underscores ('_')"
|
Description: "Secret to connect to this OpenVidu Platform. Cannot be empty and must contain only alphanumeric characters [a-zA-Z0-9], hypens ('-') and underscores ('_')"
|
||||||
Type: String
|
Type: String
|
||||||
|
@ -241,6 +248,7 @@ Metadata:
|
||||||
default: OpenVidu configuration
|
default: OpenVidu configuration
|
||||||
Parameters:
|
Parameters:
|
||||||
- OpenViduLicense
|
- OpenViduLicense
|
||||||
|
- OpenViduEdition
|
||||||
- OpenViduSecret
|
- OpenViduSecret
|
||||||
- MediaNodesStartNumber
|
- MediaNodesStartNumber
|
||||||
- Label:
|
- Label:
|
||||||
|
@ -468,6 +476,9 @@ Resources:
|
||||||
# Pro License
|
# Pro License
|
||||||
sed -i "s/OPENVIDU_PRO_LICENSE=/OPENVIDU_PRO_LICENSE=${OpenViduLicense}/" $WORKINGDIR/.env
|
sed -i "s/OPENVIDU_PRO_LICENSE=/OPENVIDU_PRO_LICENSE=${OpenViduLicense}/" $WORKINGDIR/.env
|
||||||
|
|
||||||
|
# OpenVidu Edition
|
||||||
|
sed -i "s/OPENVIDU_EDITION=pro/OPENVIDU_EDITION=${OpenViduEdition}/" $WORKINGDIR/.env
|
||||||
|
|
||||||
# Replace secret
|
# Replace secret
|
||||||
sed -i "s/OPENVIDU_SECRET=/OPENVIDU_SECRET=${OpenViduSecret}/" $WORKINGDIR/.env
|
sed -i "s/OPENVIDU_SECRET=/OPENVIDU_SECRET=${OpenViduSecret}/" $WORKINGDIR/.env
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue