适配Docker部署环境,修复拉流代理播放失败问题

1. Docker环境适配:
   - Dockerfile基础镜像从JDK11升级为eclipse-temurin:21
   - pom.xml编译版本从Java21降为Java17
   - docker-compose开放Redis(6379)、MySQL(3306)、ZLM(6080)端口映射
   - application.yml激活profile改为dev
   - application-dev.yml适配Docker服务连接参数(Redis/MySQL/ZLM)

2. 修复拉流代理播放失败:
   - Nginx添加流媒体后缀代理规则(.flv/.m3u8/.ts等),支持自定义app名的流路径
   - Nginx添加WebRTC API代理规则
   - Nginx添加sub_filter规则,将API返回的流地址端口从80(ZLM容器内部端口)重写为8080(Nginx对外端口)
   - docker-compose向Nginx容器传递WebHttp环境变量

3. ZLMediaKit配置补充onvif和rtc相关配置段

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-02-03 11:10:06 +08:00
parent 40555d917b
commit 0afb3c42a4
7 changed files with 79 additions and 24 deletions

View File

@@ -196,4 +196,21 @@ pktBufSize=8192
port=9000
timeoutSec=5
; } ---
[onvif]
port=3702
[rtc]
enableTurn=1
icePort=3478
icePwd=ZLMediaKit
iceTcpPort=3478
iceTransportPolicy=0
iceUfrag=ZLMediaKit
interfaces=
max_stun_retry=7
nackAudioRtpSize=4
port_range=49152-65535
preferred_tcp=0
signalingPort=3000
signalingSslPort=3001