์ฐธ๊ณ ์ฌ์ดํธ :
OpenVidu Pro on-premises ๊ณต์ ๋ฌธ์
๐ก stt ์ฌ์ฉ์ **2 CPU / 8GB of RAM** ์ด์ ์คํ์ ์๋ฒ ํ์ ๐ ufw allow ssh ufw allow 40000:65535/tcp ufw allow 40000:65535/udp ufw allow 3000/tcp from ufw allow 4000/tcp from ufw allow 8888/tcp from ufw allow 80/tcp from ufw enable-- apt ์
๋ฐ์ดํธ, ํจํค์ง ์ค์น
sudo apt-get update
sudo apt-get install \
apt-transport-https \
ca-certificates \
curl \
gnupg-agent \
software-properties-common
-- GPG key ๋ฑ๋ก
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
-- repository์ ์ถ๊ฐ
sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"
-- docker ์ค์นํ๊ธฐ
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io
-- ubuntu image ๋ฐ๊ธฐ
docker pull ubuntu
-- image ์คํ
docker run -it ubuntu
-- Docker compose ์ค์น
sudo curl -L "https://github.com/docker/compose/releases/download/v2.12.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo mv /usr/local/bin/docker-compose /usr/bin/docker-compose
sudo chmod +x /usr/bin/docker-compose
sudo su
cd /opt
curl https://s3-eu-west-1.amazonaws.com/aws.openvidu.io/install_media_node_latest.sh | bash
./media_node start -- ์์
./media_node restart -- ์ฌ์์
```
## ๋ง์คํฐ ์๋ฒ
### ํฌํธ ์คํ
<aside>
๐ ufw allow ssh
ufw allow 80/tcp
ufw allow 443/tcp
ufw allow 3478/tcp
ufw allow 3478/udp
ufw allow 5044/tcp
ufw allow 9200/tcp
ufw allow 40000:65535/tcp
ufw allow 40000:65535/udp
ufw enable
</aside>
### ๋์ปค ์ค์น
```kotlin
-- apt ์
๋ฐ์ดํธ, ํจํค์ง ์ค์น
sudo apt-get update
sudo apt-get install \
apt-transport-https \
ca-certificates \
curl \
gnupg-agent \
software-properties-common
-- GPG key ๋ฑ๋ก
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
-- repository์ ์ถ๊ฐ
sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"
-- docker ์ค์นํ๊ธฐ
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io
-- ubuntu image ๋ฐ๊ธฐ
docker pull ubuntu
-- image ์คํ
docker run -it ubuntu
-- Docker compose ์ค์น
sudo curl -L "https://github.com/docker/compose/releases/download/v2.12.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo mv /usr/local/bin/docker-compose /usr/bin/docker-compose
sudo chmod +x /usr/bin/docker-compose
sudo su
cd /opt
curl https://s3-eu-west-1.amazonaws.com/aws.openvidu.io/install_openvidu_pro_latest.sh | bash
cd /opt/openvidu
nano .env
DOMAIN_OR_PUBLIC_IP
ย : ๋ง์คํฐ์๋ฒ ๋๋ฉ์ธ or public ip ์ฃผ์OPENVIDU_SECRET
: api ํธ์ถ์ ์ฌ์ฉํ ๋น๋ฐ๋ฒํธELASTICSEARCH_PASSWORD
: ๋ชจ๋ํฐ๋ง ์๋น์ค ๋น๋ฐ๋ฒํธOPENVIDU_PRO_LICENSE
: PRO๋ฒ์ ๋ผ์ด์ผ์คํคCERTIFICATE_TYPE
: ์ํธํ๋ฐฉ์KMS_URIS
: ๋ฏธ๋์ด ๋ ธ๋ public ip:8888/kurento
sudo su
cd /opt/openvidu
./openvidu start