bugfix
This commit is contained in:
parent
d979a425e1
commit
ac51af6126
3
msp/coturn/data.json
Normal file
3
msp/coturn/data.json
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"port":13478
|
||||
}
|
7
msp/coturn/install.sh
Executable file
7
msp/coturn/install.sh
Executable file
@ -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
|
||||
|
23
msp/stun/README.md
Normal file
23
msp/stun/README.md
Normal file
@ -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
|
||||
|
19
msp/stun/install.sh
Executable file
19
msp/stun/install.sh
Executable file
@ -0,0 +1,19 @@
|
||||
sudo cp stunserver /usr/local/bin
|
||||
chmod + /usr/local/bin/stunserver
|
||||
sudo cat > /etc/systemd/system/stund.service <<!!
|
||||
[Unit]
|
||||
Description=Gadget Webserver base on aiothhp
|
||||
After=network.target mariadb.service
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/local/bin/stunserver --primaryport 13478
|
||||
ExecStop=/usr/bin/killall stunserver
|
||||
KillMode=process
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Alias=gadget.service
|
||||
!!
|
||||
sudo systemctl daemon-reload
|
||||
sudo systemctl enable stund.service
|
||||
sudo systemctl restart stund.service
|
BIN
msp/stun/stunserver
Executable file
BIN
msp/stun/stunserver
Executable file
Binary file not shown.
Loading…
Reference in New Issue
Block a user