|
5 | 5 | xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd |
6 | 6 | http://www.springframework.org/schema/lang http://www.springframework.org/schema/lang/spring-lang.xsd"> |
7 | 7 |
|
8 | | - <!-- |
9 | | - The tomcat connectors may be blocking or non-blocking. Select between either option via the protocol property. |
10 | | - Blocking I/O: |
11 | | - <property name="protocol" value="org.apache.coyote.http11.Http11Protocol" /> |
12 | | - Non-blocking I/O: |
13 | | - <property name="protocol" value="org.apache.coyote.http11.Http11Nio2Protocol" /> |
14 | | - --> |
15 | | - <!-- Tomcat without SSL enabled --> |
| 8 | + <!-- Transports for HTTP/S and WS/S |
| 9 | + The tomcat connectors may be blocking or non-blocking. Select between either option via the protocol property. |
| 10 | + Blocking I/O: |
| 11 | + <property name="protocol" value="org.apache.coyote.http11.Http11Protocol" /> |
| 12 | + Non-blocking I/O: |
| 13 | + <property name="protocol" value="org.apache.coyote.http11.Http11Nio2Protocol" /> |
| 14 | + |
| 15 | + Connection properties available for TomcatConnector in Red5 2.0.10: |
| 16 | + protocols="TLSv1.2,TLSv1.3" |
| 17 | + ciphers="TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384" |
| 18 | + --> |
16 | 19 | <bean id="tomcat.server" class="org.red5.server.tomcat.TomcatLoader" depends-on="context.loader" lazy-init="true"> |
17 | | - <property name="awaitPlugins" value="false" /> |
18 | | - <property name="websocketEnabled" value="true" /> |
| 20 | + <property name="secureEnabled" value="${secure.enabled}" /> |
| 21 | + <property name="websocketEnabled" value="${websocket.enabled}" /> |
19 | 22 | <property name="webappFolder" value="${red5.root}/webapps" /> |
20 | 23 | <property name="connectors"> |
21 | 24 | <list> |
|
28 | 31 | <entry key="maxHttpHeaderSize" value="${http.max_headers_size}"/> |
29 | 32 | <entry key="maxKeepAliveRequests" value="${http.max_keep_alive_requests}"/> |
30 | 33 | <entry key="keepAliveTimout" value="-1"/> |
| 34 | + <entry key="useExecutor" value="true"/> |
| 35 | + <entry key="maxThreads" value="${http.max_threads}"/> |
| 36 | + <entry key="acceptCount" value="100"/> |
| 37 | + <entry key="acceptorThreadCount" value="${http.acceptor_thread_count}"/> |
| 38 | + <entry key="processorCache" value="${http.processor_cache}"/> |
| 39 | + <entry key="connectionTimeout" value="20000"/> |
| 40 | + <entry key="maxConnections" value="-1"/> |
| 41 | + <entry key="relaxedQueryChars" value="[,]"/> |
| 42 | + <entry key="useLowerCaseHeaders" value="false"/> |
31 | 43 | </map> |
32 | 44 | </property> |
33 | 45 | </bean> |
34 | | - </list> |
35 | | - </property> |
36 | | - <property name="baseHost"> |
37 | | - <bean class="org.apache.catalina.core.StandardHost"> |
38 | | - <property name="name" value="${http.host}" /> |
39 | | - </bean> |
40 | | - </property> |
41 | | - <property name="valves"> |
42 | | - <list> |
43 | | - <bean id="valve.access" class="org.apache.catalina.valves.AccessLogValve"> |
44 | | - <property name="directory" value="log" /> |
45 | | - <property name="prefix" value="${http.host}_access." /> |
46 | | - <property name="suffix" value=".log" /> |
47 | | - <property name="pattern" value="common" /> |
48 | | - <property name="rotatable" value="true" /> |
49 | | - </bean> |
50 | | - </list> |
51 | | - </property> |
52 | | - </bean> |
53 | | - |
54 | | - <!-- Tomcat with SSL enabled --> |
55 | | -<!-- |
56 | | - <bean id="tomcat.server" class="org.red5.server.tomcat.TomcatLoader" depends-on="context.loader" lazy-init="true"> |
57 | | - <property name="websocketEnabled" value="true" /> |
58 | | - <property name="webappFolder" value="${red5.root}/webapps" /> |
59 | | - <property name="connectors"> |
60 | | - <list> |
61 | | - <bean name="httpConnector" class="org.red5.server.tomcat.TomcatConnector"> |
62 | | - <property name="protocol" value="org.apache.coyote.http11.Http11Nio2Protocol" /> |
63 | | - <property name="address" value="${http.host}:${http.port}" /> |
64 | | - <property name="redirectPort" value="${https.port}" /> |
65 | | - </bean> |
66 | 46 | <bean name="httpsConnector" class="org.red5.server.tomcat.TomcatConnector"> |
67 | 47 | <property name="secure" value="true" /> |
68 | 48 | <property name="protocol" value="org.apache.coyote.http11.Http11Nio2Protocol" /> |
69 | 49 | <property name="address" value="${http.host}:${https.port}" /> |
70 | 50 | <property name="redirectPort" value="${http.port}" /> |
71 | 51 | <property name="connectionProperties"> |
72 | 52 | <map> |
73 | | - <entry key="port" value="${https.port}" /> |
74 | | - <entry key="redirectPort" value="${http.port}" /> |
75 | | -
|
76 | | - <entry key="SSLEnabled" value="true" /> |
77 | | - <entry key="sslProtocol" value="TLS" /> |
| 53 | + <entry key="keystoreType" value="JKS" /> |
78 | 54 | <entry key="keystoreFile" value="${rtmps.keystorefile}" /> |
79 | 55 | <entry key="keystorePass" value="${rtmps.keystorepass}" /> |
| 56 | + <entry key="truststoreType" value="JKS" /> |
80 | 57 | <entry key="truststoreFile" value="${rtmps.truststorefile}" /> |
81 | 58 | <entry key="truststorePass" value="${rtmps.truststorepass}" /> |
82 | | - <entry key="clientAuth" value="false" /> |
83 | | - <entry key="allowUnsafeLegacyRenegotiation" value="true" /> |
84 | | -
|
| 59 | + <entry key="allowUnsafeLegacyRenegotiation" value="false" /> |
85 | 60 | <entry key="maxHttpHeaderSize" value="${http.max_headers_size}"/> |
86 | 61 | <entry key="maxKeepAliveRequests" value="${http.max_keep_alive_requests}"/> |
87 | 62 | <entry key="keepAliveTimout" value="-1"/> |
88 | | -
|
89 | 63 | <entry key="useExecutor" value="true"/> |
90 | 64 | <entry key="maxThreads" value="${http.max_threads}"/> |
91 | 65 | <entry key="acceptorThreadCount" value="${http.acceptor_thread_count}"/> |
92 | 66 | <entry key="processorCache" value="${http.processor_cache}"/> |
| 67 | + <entry key="connectionTimeout" value="20000"/> |
| 68 | + <entry key="relaxedQueryChars" value="[,]"/> |
| 69 | + <entry key="useLowerCaseHeaders" value="false"/> |
93 | 70 | </map> |
94 | 71 | </property> |
95 | 72 | </bean> |
|
100 | 77 | <property name="name" value="${http.host}" /> |
101 | 78 | </bean> |
102 | 79 | </property> |
| 80 | + <property name="valves"> |
| 81 | + <list> |
| 82 | + <bean id="valve.access" class="org.apache.catalina.valves.AccessLogValve"> |
| 83 | + <property name="directory" value="log" /> |
| 84 | + <property name="prefix" value="${http.host}_access" /> |
| 85 | + <property name="suffix" value=".log" /> |
| 86 | + <property name="pattern" value="common" /> |
| 87 | + <property name="rotatable" value="true" /> |
| 88 | + </bean> |
| 89 | + </list> |
| 90 | + </property> |
103 | 91 | </bean> |
104 | | ---> |
105 | 92 |
|
106 | 93 | </beans> |
0 commit comments