112 lines
3.1 KiB
Text
112 lines
3.1 KiB
Text
<!--
|
|
- Resin 3.1 configuration file.
|
|
-->
|
|
<resin xmlns="http://caucho.com/ns/resin"
|
|
xmlns:resin="http://caucho.com/ns/resin/core">
|
|
|
|
<!--
|
|
- Logging configuration for the JDK logging API.
|
|
-->
|
|
<log name="" level="all" path="stdout:"
|
|
timestamp="[%H:%M:%S.%s] {%{thread}} "/>
|
|
|
|
<!--
|
|
- 'info' for production
|
|
- 'fine' or 'finer' for development and troubleshooting
|
|
-->
|
|
<logger name="com.caucho" level="info"/>
|
|
|
|
<logger name="com.caucho.java" level="config"/>
|
|
<logger name="com.caucho.loader" level="config"/>
|
|
|
|
<!--
|
|
- For production sites, change dependency-check-interval to something
|
|
- like 600s, so it only checks for updates every 10 minutes.
|
|
-->
|
|
<dependency-check-interval>2s</dependency-check-interval>
|
|
|
|
<!--
|
|
- You can change the compiler to "javac", "eclipse" or "internal".
|
|
-->
|
|
<javac compiler="javac" args="-source 1.5"/>
|
|
|
|
<!-- Security providers.
|
|
- <security-provider>
|
|
- com.sun.net.ssl.internal.ssl.Provider
|
|
- </security-provider>
|
|
-->
|
|
|
|
<cluster id="app-tier">
|
|
<!-- sets the content root for the cluster, relative to server.root -->
|
|
<root-directory>.</root-directory>
|
|
|
|
<server-default>
|
|
<!-- The http port -->
|
|
<http address="*" port="5080"/>
|
|
|
|
<!--
|
|
- Configures the minimum free memory allowed before Resin
|
|
- will force a restart.
|
|
-->
|
|
<memory-free-min>1M</memory-free-min>
|
|
|
|
<!-- Maximum number of threads. -->
|
|
<thread-max>256</thread-max>
|
|
|
|
<!-- Configures the socket timeout -->
|
|
<socket-timeout>65s</socket-timeout>
|
|
|
|
<!-- Configures the keepalive -->
|
|
<keepalive-max>128</keepalive-max>
|
|
<keepalive-timeout>120s</keepalive-timeout>
|
|
</server-default>
|
|
|
|
<!-- define the servers in the cluster -->
|
|
<server id="" address="127.0.0.1" port="5079">
|
|
<watchdog-port>5078</watchdog-port>
|
|
</server>
|
|
|
|
<!-- includes the web-app-default for default web-app behavior -->
|
|
<resin:import path="${resin.home}/conf/app-default.xml"/>
|
|
|
|
<!--
|
|
- Default host configuration applied to all virtual hosts.
|
|
-->
|
|
<host-default>
|
|
|
|
|
|
<!--
|
|
- With another web server, like Apache, this can be commented out
|
|
- because the web server will log this information.
|
|
-->
|
|
<access-log path="build/access.log"
|
|
format='%h %l %u %t "%r" %s %b "%{Referer}i" "%{User-Agent}i"'
|
|
rollover-period="1W"/>
|
|
|
|
|
|
</host-default>
|
|
|
|
<!-- configures the default host, matching any host name -->
|
|
<host id=''>
|
|
|
|
<!-- configures the root web-app -->
|
|
<web-app id='/album' document-directory='webapp'>
|
|
|
|
<temp-dir>target/resin-tmp</temp-dir>
|
|
<work-dir>target/resin-work</work-dir>
|
|
|
|
<session-config>
|
|
<!-- 30 min timeout -->
|
|
<session-timeout>30</session-timeout>
|
|
</session-config>
|
|
|
|
<class-loader>
|
|
<compiling-loader path="target"/>
|
|
</class-loader>
|
|
|
|
<path-mapping url-pattern="/demo/*" real-path="${resin.root}/photos" />
|
|
</web-app>
|
|
|
|
</host>
|
|
</cluster>
|
|
</resin>
|