docker镜像使用自动生成的配置文件,修复#166
This commit is contained in:
parent
2766373632
commit
715c7d2724
@ -68,6 +68,7 @@ RUN mkdir -p /opt/media && \
|
||||
cd build && \
|
||||
cmake -DCMAKE_BUILD_TYPE=Release .. && \
|
||||
make -j4 && \
|
||||
rm -rf ../release/linux/Release/config.ini && \
|
||||
cp -r ../release/linux/Release/* /opt/media && \
|
||||
mkdir -p /opt/media/www/record
|
||||
|
||||
|
@ -93,8 +93,12 @@ public class MediaConfig{
|
||||
}
|
||||
|
||||
public String getSipIp() {
|
||||
if (sipIp == null) {
|
||||
return this.ip;
|
||||
}else {
|
||||
return sipIp;
|
||||
}
|
||||
}
|
||||
|
||||
public int getHttpPort() {
|
||||
return httpPort;
|
||||
@ -183,13 +187,13 @@ public class MediaConfig{
|
||||
mediaServerItem.setIp(ip);
|
||||
mediaServerItem.setDefaultServer(true);
|
||||
mediaServerItem.setHookIp(getHookIp());
|
||||
mediaServerItem.setSdpIp(sdpIp);
|
||||
mediaServerItem.setStreamIp(streamIp);
|
||||
mediaServerItem.setSdpIp(getSdpIp());
|
||||
mediaServerItem.setStreamIp(getStreamIp());
|
||||
mediaServerItem.setHttpPort(httpPort);
|
||||
mediaServerItem.setHttpSSlPort(httpSSlPort);
|
||||
mediaServerItem.setRtmpPort(rtmpPort);
|
||||
mediaServerItem.setRtmpSSlPort(rtmpSSlPort);
|
||||
mediaServerItem.setRtpProxyPort(rtpProxyPort);
|
||||
mediaServerItem.setRtpProxyPort(getRtpProxyPort());
|
||||
mediaServerItem.setRtspPort(rtspPort);
|
||||
mediaServerItem.setRtspSSLPort(rtspSSLPort);
|
||||
mediaServerItem.setAutoConfig(autoConfig);
|
||||
|
Loading…
Reference in New Issue
Block a user