Skip to content

Commit

Permalink
修复HOST模式下RTVSAPI配置错误导致的JT转GB和GB级联播放错误
Browse files Browse the repository at this point in the history
  • Loading branch information
vanjoge committed Jul 24, 2024
1 parent 1ef54bc commit 00681fc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions script/run_28181.sh
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,10 @@ function docker_run(){

#启动28181
if [[ "$RTVS_NETWORK_HOST" == "true" ]]; then
updateXml $DOCKER_GBSIP_PATH/Setting.xml RTVSAPI "http://127.0.0.1:$PORT_DEV_START/"
docker run --name $DOCKER_GBSIP_NAME --net host --restart always --privileged=true -v $DOCKER_GBSIP_PATH:/MyData -e MyDataPath=/MyData -e ASPNETCORE_URLS="http://*:$DOCKER_GBSIP_HTTP_PORT" -d $DOCKER_GBSIP_IMAGE_NAME
else
updateXml $DOCKER_GBSIP_PATH/Setting.xml RTVSAPI "http://172.29.108.11/"
docker run --name $DOCKER_GBSIP_NAME --net $DOCKER_NETWORK --ip $DOCKER_GBSIP_IP --restart always --privileged=true -v $DOCKER_GBSIP_PATH:/MyData -e MyDataPath=/MyData -p $DOCKER_GBSIP_HTTP_PORT:80 -p $DOCKER_GBSIP_PORT:$DOCKER_GBSIP_PORT/tcp -p $DOCKER_GBSIP_PORT:$DOCKER_GBSIP_PORT/udp -d $DOCKER_GBSIP_IMAGE_NAME
fi
}
Expand Down
2 changes: 2 additions & 0 deletions script/run_gw.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,15 @@ function docker_run(){
fi
#启动gw
if [[ "$RTVS_NETWORK_HOST" == "true" ]]; then
updateXml $DOCKER_GW_PATH/SettingConfig.xml RTVSAPI "http://127.0.0.1:$PORT_DEV_START/api/GB/"
docker run --name $DOCKER_GW_NAME --net host --restart always --privileged=true \
--log-opt max-size=500m --log-opt max-file=3 \
-v $DOCKER_GW_PATH:/MyData \
-e MyDataPath=/MyData \
-e ASPNETCORE_URLS="http://*:$DOCKER_808_HTTP_PORT" \
-d $DOCKER_GW_IMAGE_NAME
else
updateXml $DOCKER_GW_PATH/SettingConfig.xml RTVSAPI "http://172.29.108.11/api/GB/"
docker run --name $DOCKER_GW_NAME --net $DOCKER_NETWORK --ip $DOCKER_GW_IP --restart always --privileged=true \
--log-opt max-size=500m --log-opt max-file=3 \
-p $DOCKER_808_PORT:9300 \
Expand Down

0 comments on commit 00681fc

Please sign in to comment.