[*] 日常优化
This commit is contained in:
@@ -5,6 +5,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import com.acgist.taoyao.boot.config.FfmpegProperties;
|
||||
import com.acgist.taoyao.boot.config.RewriteProperties;
|
||||
import com.acgist.taoyao.boot.config.MediaProperties;
|
||||
import com.acgist.taoyao.boot.config.SocketProperties;
|
||||
import com.acgist.taoyao.boot.config.WebrtcProperties;
|
||||
@@ -32,6 +33,7 @@ public class ConfigController {
|
||||
private final FfmpegProperties ffmpegProperties;
|
||||
private final SocketProperties socketProperties;
|
||||
private final WebrtcProperties webrtcProperties;
|
||||
private final RewriteProperties rewriteProperties;
|
||||
|
||||
@Operation(summary = "媒体配置", description = "媒体配置")
|
||||
@GetMapping("/media")
|
||||
@@ -61,4 +63,11 @@ public class ConfigController {
|
||||
return Message.success(this.webrtcProperties);
|
||||
}
|
||||
|
||||
@Operation(summary = "地址重写配置", description = "地址重写配置")
|
||||
@GetMapping("/rewrite")
|
||||
@ApiResponse(content = @Content(schema = @Schema(implementation = WebrtcProperties.class)))
|
||||
public Message rewrite() {
|
||||
return Message.success(this.rewriteProperties);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -236,6 +236,18 @@ taoyao:
|
||||
# port: 3478
|
||||
# username: taoyao
|
||||
# password: taoyao
|
||||
# 地址重写
|
||||
rewrite:
|
||||
enabled: true
|
||||
prefix: 24
|
||||
# 重写规则
|
||||
rule:
|
||||
# - network: 192.168.1.0
|
||||
# inner-host:
|
||||
# outer-host:
|
||||
# - network: 192.168.8.0
|
||||
# inner-host:
|
||||
# outer-host:
|
||||
# 安全配置
|
||||
security:
|
||||
enabled: true
|
||||
@@ -253,15 +265,3 @@ taoyao:
|
||||
room: 0 0/5 * * * ?
|
||||
# 清理无效终端连接
|
||||
client: 0 * * * * ?
|
||||
# 地址重写
|
||||
ip-rewrite:
|
||||
enabled: true
|
||||
prefix: 24
|
||||
# 重写规则
|
||||
rule:
|
||||
# - network: 192.168.1.0
|
||||
# inner-host:
|
||||
# outer-host:
|
||||
# - network: 192.168.8.0
|
||||
# inner-host:
|
||||
# outer-host:
|
||||
|
||||
Reference in New Issue
Block a user