[*] 优化内容
This commit is contained in:
@@ -64,7 +64,7 @@
|
||||
<configuration>
|
||||
<archive>
|
||||
<manifest>
|
||||
<mainClass>com.acgist.taoyao.TaoyaoApplication</mainClass>
|
||||
<mainClass>com.acgist.taoyao.main.TaoyaoApplication</mainClass>
|
||||
<addClasspath>true</addClasspath>
|
||||
<classpathPrefix>./</classpathPrefix>
|
||||
</manifest>
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
package com.acgist.taoyao.controller;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import com.acgist.taoyao.boot.config.WebrtcProperties;
|
||||
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
|
||||
/**
|
||||
* 配置
|
||||
*
|
||||
* @author acgist
|
||||
*/
|
||||
@Tag(name = "配置", description = "配置管理")
|
||||
@RestController
|
||||
@RequestMapping("/config")
|
||||
public class ConfigController {
|
||||
|
||||
@Autowired
|
||||
private WebrtcProperties webrtcProperties;
|
||||
|
||||
@Operation(summary = "WebRTC配置", description = "WebRTC配置")
|
||||
@GetMapping("/webrtc")
|
||||
public WebrtcProperties webrtc() {
|
||||
return this.webrtcProperties;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.acgist.taoyao;
|
||||
package com.acgist.taoyao.main;
|
||||
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
@@ -5,6 +5,12 @@ server:
|
||||
key-store: classpath:taoyao.jks
|
||||
key-store-password: 123456
|
||||
key-password: 123456
|
||||
tomcat:
|
||||
remoteip:
|
||||
host-header: X-Forwarded-Host
|
||||
port-header: X-Forwarded-Port
|
||||
protocol-header: X-Forwarded-Proto
|
||||
remote-ip-header: X-Forwarded-For
|
||||
spring:
|
||||
profiles:
|
||||
active: dev
|
||||
@@ -16,12 +22,33 @@ spring:
|
||||
multipart:
|
||||
max-file-size: 256MB
|
||||
max-request-size: 256MB
|
||||
task:
|
||||
execution:
|
||||
pool:
|
||||
core-size: 8
|
||||
max-size: 128
|
||||
keep-alive: 60s
|
||||
queue-capacity: 100000
|
||||
allow-core-thread-timeout: true
|
||||
shutdown:
|
||||
await-termination: true
|
||||
await-termination-period: 60s
|
||||
thread-name-prefix: ${spring.application.name}-
|
||||
scheduling:
|
||||
pool:
|
||||
size: 4
|
||||
shutdown:
|
||||
await-termination: true
|
||||
await-termination-period: 60s
|
||||
thread-name-prefix: ${spring.application.name}-scheduling-
|
||||
taoyao:
|
||||
url: https://gitee.com/acgist/taoyao
|
||||
name: 桃夭
|
||||
timeout: 5000
|
||||
version: 1.0.0
|
||||
description: WebRTC信令服务
|
||||
webrtc:
|
||||
type:
|
||||
security:
|
||||
realm: taoyao
|
||||
permit: /v3/api-docs/,/swagger-ui/,/error
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.acgist.taoyao;
|
||||
package com.acgist.taoyao.main;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.springframework.boot.test.context.SpringBootTest;
|
||||
Reference in New Issue
Block a user