|
4 | 4 | xmlns:lang="http://www.springframework.org/schema/lang" |
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 | 8 | <!-- War deployer --> |
9 | 9 | <bean id="warDeployer" class="org.red5.server.tomcat.WarDeployer"> |
10 | 10 | <property name="checkInterval" value="${war.deploy.server.check.interval}"/> |
11 | | - <property name="webappFolder" value="${red5.root}/webapps"/> |
| 11 | + <property name="webappFolder" value="${red5.root}/webapps"/> |
12 | 12 | <!-- Expand war files prior to startup of the remaining services --> |
13 | 13 | <property name="expandWars" value="true" /> |
14 | | - </bean> |
| 14 | + </bean> |
15 | 15 |
|
16 | | - <!-- |
| 16 | + <!-- |
17 | 17 | The tomcat connectors may be blocking or non-blocking. Select between either option via the protocol property. |
18 | 18 | Blocking I/O: |
19 | 19 | <property name="protocol" value="org.apache.coyote.http11.Http11Protocol" /> |
20 | 20 | Non-blocking I/O: |
21 | 21 | <property name="protocol" value="org.apache.coyote.http11.Http11NioProtocol" /> |
22 | | - --> |
| 22 | + --> |
23 | 23 |
|
24 | | - <!-- Tomcat without SSL enabled --> |
| 24 | + <!-- Tomcat without SSL enabled --> |
25 | 25 | <bean id="tomcat.server" class="org.red5.server.tomcat.TomcatLoader" depends-on="context.loader,warDeployer" lazy-init="true"> |
26 | 26 |
|
27 | 27 | <property name="webappFolder" value="${red5.root}/webapps" /> |
|
31 | 31 | <bean name="httpConnector" class="org.red5.server.tomcat.TomcatConnector"> |
32 | 32 | <property name="protocol" value="org.apache.coyote.http11.Http11NioProtocol" /> |
33 | 33 | <property name="address" value="${http.host}:${http.port}" /> |
34 | | - <property name="redirectPort" value="${https.port}" /> |
| 34 | + <property name="redirectPort" value="${https.port}" /> |
35 | 35 | <property name="connectionProperties"> |
36 | 36 | <map> |
37 | | - <entry key="maxKeepAliveRequests" value="-1"/> |
| 37 | + <entry key="maxKeepAliveRequests" value="${http.max_keep_alive_requests}"/> |
38 | 38 | <entry key="keepAliveTimout" value="-1"/> |
39 | 39 | </map> |
40 | 40 | </property> |
41 | | - </bean> |
| 41 | + </bean> |
42 | 42 | </list> |
43 | 43 | </property> |
44 | 44 |
|
45 | 45 | <property name="baseHost"> |
46 | 46 | <bean class="org.apache.catalina.core.StandardHost"> |
47 | 47 | <property name="name" value="${http.host}" /> |
48 | | - </bean> |
49 | | - </property> |
| 48 | + </bean> |
| 49 | + </property> |
50 | 50 |
|
51 | 51 | <property name="valves"> |
52 | 52 | <list> |
|
63 | 63 | </bean> |
64 | 64 |
|
65 | 65 | <!-- Tomcat with SSL enabled --> |
66 | | -<!-- |
| 66 | +<!-- |
67 | 67 | <bean id="tomcat.server" class="org.red5.server.tomcat.TomcatLoader" depends-on="context.loader" lazy-init="true"> |
68 | 68 |
|
69 | 69 | <property name="webappFolder" value="${red5.root}/webapps" /> |
|
73 | 73 | <bean name="httpConnector" class="org.red5.server.tomcat.TomcatConnector"> |
74 | 74 | <property name="protocol" value="org.apache.coyote.http11.Http11NioProtocol" /> |
75 | 75 | <property name="address" value="${http.host}:${http.port}" /> |
76 | | - <property name="redirectPort" value="${https.port}" /> |
| 76 | + <property name="redirectPort" value="${https.port}" /> |
77 | 77 | </bean> |
78 | 78 | <bean name="httpsConnector" class="org.red5.server.tomcat.TomcatConnector"> |
79 | 79 | <property name="secure" value="true" /> |
80 | 80 | <property name="protocol" value="org.apache.coyote.http11.Http11NioProtocol" /> |
81 | 81 | <property name="address" value="${http.host}:${https.port}" /> |
82 | | - <property name="redirectPort" value="${http.port}" /> |
| 82 | + <property name="redirectPort" value="${http.port}" /> |
83 | 83 | <property name="connectionProperties"> |
84 | | - <map> |
| 84 | + <map> |
85 | 85 | <entry key="port" value="${https.port}" /> |
86 | 86 | <entry key="redirectPort" value="${http.port}" /> |
87 | 87 | <entry key="SSLEnabled" value="true" /> |
|
91 | 91 | <entry key="keystoreType" value="JKS" /> |
92 | 92 | <entry key="truststoreFile" value="${rtmps.truststorefile}" /> |
93 | 93 | <entry key="truststorePass" value="${rtmps.truststorepass}" /> |
94 | | - <entry key="clientAuth" value="false" /> |
| 94 | + <entry key="clientAuth" value="false" /> |
95 | 95 | <entry key="allowUnsafeLegacyRenegotiation" value="true" /> |
96 | 96 | <entry key="maxKeepAliveRequests" value="${http.max_keep_alive_requests}"/> |
| 97 | + <entry key="keepAliveTimout" value="-1"/> |
97 | 98 | <entry key="useExecutor" value="true"/> |
98 | 99 | <entry key="maxThreads" value="${http.max_threads}"/> |
99 | 100 | <entry key="acceptorThreadCount" value="${http.acceptor_thread_count}"/> |
100 | 101 | <entry key="processorCache" value="${http.processor_cache}"/> |
101 | 102 | </map> |
102 | | - </property> |
103 | | - </bean> |
| 103 | + </property> |
| 104 | + </bean> |
104 | 105 | </list> |
105 | 106 | </property> |
106 | | - |
| 107 | +
|
107 | 108 | <property name="baseHost"> |
108 | 109 | <bean class="org.apache.catalina.core.StandardHost"> |
109 | 110 | <property name="name" value="${http.host}" /> |
110 | | - </bean> |
| 111 | + </bean> |
111 | 112 | </property> |
112 | 113 | |
113 | 114 | </bean> |
|
0 commit comments