Skip to content

Commit 8360286

Browse files
fix(track-http): 修复网关http-url错误 (#49)
* feat(demo): 优化demo * 增加http脚本 * feat(jtt808): 修复808网关的http的URL错误 * feat(网关http): 直接使用nginx代理的端口 * perf(还原): 还原设置 * feat(注释): 增加注释 --------- Co-authored-by: TranscodeGroupDeveloper <transcodegroupdeveloper@gmail.com>
1 parent 6e1b4b7 commit 8360286

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

examples/track-http/compose.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ include:
77
- ../docker/rabbitmq/compose.yml
88
- ../docker/minio/compose.yml
99
- ../docker/maintain/compose.yml
10-
- ../docker/jtt808/compose.yml
10+
- path:
11+
- ../docker/jtt808/compose.yml
12+
- ../docker/jtt808/compose.http.yml
1113
- path:
1214
- ../docker/video/compose.yml
1315
- ../docker/video/compose.storage.yml

jtt808/compose.http.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
services:
2+
jtt808:
3+
environment:
4+
# 网关Http服务
5+
- gateway_http_url=http://${TRACK_HOSTNAME}:${WEB_PORT_HTTP}/jtt808

jtt808/compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ services:
3535
- gateway_ftp_passive_ip=${JTT808_IP:?required}
3636
- gateway_ftp_passive_ports=${JTT808_PORT_FTP_PASSIVE}
3737

38-
# 终端注册服务
38+
# 终端注册服务(默认使用别名maintain访问)
3939
- gateway_device-register-url=${WEB_BASE_URL:-http://${MAINTAIN_HOST}:${MAINTAIN_PORT}}
4040
# 网关Http服务
41-
- gateway_http_url=${WEB_BASE_URL:-http://${MAINTAIN_HOST}:${MAINTAIN_PORT}}/jtt808
41+
- gateway_http_url=https://${TRACK_HOSTNAME}:${WEB_PORT_HTTPS}}/jtt808
4242

4343
# MongoDB
4444
- spring_data_mongodb_host=${MONGODB_HOST:-mongodb}

0 commit comments

Comments
 (0)