diff --git a/msp/coturn/data.json b/msp/coturn/data.json new file mode 100644 index 0000000..d276604 --- /dev/null +++ b/msp/coturn/data.json @@ -0,0 +1,3 @@ +{ + "port":13478 +} diff --git a/msp/coturn/install.sh b/msp/coturn/install.sh new file mode 100755 index 0000000..3dad875 --- /dev/null +++ b/msp/coturn/install.sh @@ -0,0 +1,7 @@ +#!/bin/sh + +sudo apt install -y coturn +sed 's/#listening-port=.*/listening-port=i13478/' -i /etc/turnserver.conf +sudo systemctl enable coturn +sudo systemctl restart coturn + diff --git a/msp/stun/README.md b/msp/stun/README.md new file mode 100644 index 0000000..874cd5c --- /dev/null +++ b/msp/stun/README.md @@ -0,0 +1,23 @@ +# stun server + +## 安装 +开源stunserver, 从[stunserver](https://github.com/jselbie/stunserver.git)下载源代码,并按照说明安装依赖并编译完成 +使用本目录的install.sh, 完成安装 + +## 启动 + +sudo systemctl restart stund + +# turnserver + +## 安装 +apt install coturn + +## 修改配置 +/etc/turnserver +将listening-port修改为13479 +保存并重启coturn服务 + +## 启动 +sudo systemctl restart coturn + diff --git a/msp/stun/install.sh b/msp/stun/install.sh new file mode 100755 index 0000000..dbbcc2b --- /dev/null +++ b/msp/stun/install.sh @@ -0,0 +1,19 @@ +sudo cp stunserver /usr/local/bin +chmod + /usr/local/bin/stunserver +sudo cat > /etc/systemd/system/stund.service <