From 00681fc4ae12ae2453858fe85a3f93a5822f7cd7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BD=B3=E9=A9=B9=20=E4=B8=87?= Date: Wed, 24 Jul 2024 21:02:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DHOST=E6=A8=A1=E5=BC=8F?= =?UTF-8?q?=E4=B8=8BRTVSAPI=E9=85=8D=E7=BD=AE=E9=94=99=E8=AF=AF=E5=AF=BC?= =?UTF-8?q?=E8=87=B4=E7=9A=84JT=E8=BD=ACGB=E5=92=8CGB=E7=BA=A7=E8=81=94?= =?UTF-8?q?=E6=92=AD=E6=94=BE=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script/run_28181.sh | 2 ++ script/run_gw.sh | 2 ++ 2 files changed, 4 insertions(+) diff --git a/script/run_28181.sh b/script/run_28181.sh index af1cd23..b046450 100755 --- a/script/run_28181.sh +++ b/script/run_28181.sh @@ -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 } diff --git a/script/run_gw.sh b/script/run_gw.sh index dad3fb2..6cd1cb5 100755 --- a/script/run_gw.sh +++ b/script/run_gw.sh @@ -64,6 +64,7 @@ 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 \ @@ -71,6 +72,7 @@ function docker_run(){ -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 \