[+] 完善socket信令
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
package com.acgist.taoyao.listener;
|
||||
|
||||
import org.springframework.boot.context.event.ApplicationStartingEvent;
|
||||
import org.springframework.context.ApplicationListener;
|
||||
|
||||
/**
|
||||
* 配置JDK HTTPClient域名校验问题
|
||||
*
|
||||
* 注意:SpringApplicationRunListeners里面同步执行
|
||||
*
|
||||
* @author acgist
|
||||
*/
|
||||
public class HTTPClientListener implements ApplicationListener<ApplicationStartingEvent> {
|
||||
|
||||
@Override
|
||||
public void onApplicationEvent(ApplicationStartingEvent event) {
|
||||
synchronized (HTTPClientListener.class) {
|
||||
System.getProperties().setProperty("jdk.internal.httpclient.disableHostnameVerification", Boolean.TRUE.toString());
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -9,7 +9,6 @@ import org.springframework.context.annotation.ComponentScan;
|
||||
public class TaoyaoApplication {
|
||||
|
||||
public static void main(String[] args) {
|
||||
System.getProperties().setProperty("jdk.internal.httpclient.disableHostnameVerification", Boolean.TRUE.toString());
|
||||
SpringApplication.run(TaoyaoApplication.class, args);
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
org.springframework.context.ApplicationListener=com.acgist.taoyao.listener.HTTPClientListener
|
||||
@@ -0,0 +1,8 @@
|
||||
taoyao:
|
||||
script:
|
||||
media-reboot: pm2 restart taoyao-media-server
|
||||
media-shutdown: pm2 stop taoyao-media-server
|
||||
system-reboot: shutdown -s -t 0
|
||||
system-shutdown: shutdown -r -t 0
|
||||
platform-reboot: net stop taoyao-signal-server & net start taoyao-signal-server
|
||||
platform-shutdown: net stop taoyao-signal-server
|
||||
@@ -52,7 +52,6 @@ taoyao:
|
||||
version: 1.0.0
|
||||
description: 桃夭WebRTC信令服务
|
||||
timeout: 5000
|
||||
max-timeout: 120000
|
||||
id:
|
||||
sn: 0
|
||||
max-index: 999999
|
||||
@@ -116,11 +115,13 @@ taoyao:
|
||||
enabled: true
|
||||
host: 0.0.0.0
|
||||
port: 9999
|
||||
timeout: ${taoyao.timeout}
|
||||
queue-size: 100000
|
||||
thread-min: 4
|
||||
thread-max: 128
|
||||
thread-name-prefix: ${spring.application.name}-signal-
|
||||
keep-alive-time: 60
|
||||
buffer-size: 2048
|
||||
# WebRTC配置
|
||||
webrtc:
|
||||
# STUN服务
|
||||
@@ -147,19 +148,10 @@ taoyao:
|
||||
client: 0 * * * * ?
|
||||
# 脚本配置
|
||||
script:
|
||||
# Linux
|
||||
linux:
|
||||
media-reboot: pm2 restart taoyao-media-server
|
||||
media-shutdown: pm2 stop taoyao-media-server
|
||||
system-reboot: reboot
|
||||
system-shutdown: shutdown now
|
||||
platform-reboot: systemctl restart taoyao-signal-server
|
||||
platform-shutdown: systemctl stop taoyao-signal-server
|
||||
# Windows
|
||||
windows:
|
||||
media-reboot: pm2 restart taoyao-media-server
|
||||
media-shutdown: pm2 stop taoyao-media-server
|
||||
system-reboot: shutdown -s -t 0
|
||||
system-shutdown: shutdown -r -t 0
|
||||
platform-reboot: net stop taoyao-signal-server & net start taoyao-signal-server
|
||||
platform-shutdown: net stop taoyao-signal-server
|
||||
enabled: true
|
||||
media-reboot: pm2 restart taoyao-media-server
|
||||
media-shutdown: pm2 stop taoyao-media-server
|
||||
system-reboot: reboot
|
||||
system-shutdown: shutdown now
|
||||
platform-reboot: systemctl restart taoyao-signal-server
|
||||
platform-shutdown: systemctl stop taoyao-signal-server
|
||||
|
||||
Reference in New Issue
Block a user