Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!--
- - Resin 4.0 configuration file.
- -->
- <resin xmlns="http://caucho.com/ns/resin"
- xmlns:resin="urn:java:com.caucho.resin">
- <!-- property-based Resin configuration -->
- <resin:properties path="${__DIR__}/resin.properties" optional="true"/>
- <resin:properties path="cloud:/resin.properties"
- optional="true" recover="true"/>
- <resin:if test="${properties_import_url}">
- <resin:properties path="${properties_import_url}"
- optional="true" recover="true"/>
- </resin:if>
- <!-- Logging configuration for the JDK logging API -->
- <log-handler name=""
- level="all"
- path="stdout:"
- timestamp="[%m-%d %H:%M:%S.%s] {%{thread}} "
- format=" ${log.level} (${log.name}) ${log.message}"/>
- <!--
- - Alternative pseudo-TTCC log format
- -
- - <log-handler name="" level="all" path="stdout:"
- - timestamp="%y-%m-%d %H:%M:%S.%s"
- - format=" [${thread}] ${log.level} ${log.shortName} - ${log.message}"/>
- -->
- <!--
- - level='info' for production
- - 'fine' or 'finer' for development and troubleshooting
- -->
- <logger name="" level="${log_level?:'all'}"/>
- <logger name="com.caucho.java" level="config"/>
- <logger name="com.caucho.loader" level="config"/>
- <!--
- - Default configuration applied to all clusters, including
- - HTTP, HTTPS, and /resin-admin configuration.
- -->
- <resin:import path="${__DIR__}/cluster-default.xml"/>
- <!--
- - health configuration
- -->
- <resin:import path="${__DIR__}/health.xml"/>
- <!--
- - Remote management requires at least one enabled admin user.
- -->
- <resin:AdminAuthenticator>
- <user name="${admin_user}" password="${admin_password}"/>
- <resin:import path="${__DIR__}/admin-users.xml" optional="true"/>
- <resin:import path="cloud:/admin-users.xml" optional="true" recover="true"/>
- </resin:AdminAuthenticator>
- <!--
- - For clustered systems, create a password in as cluster_system_key
- -->
- <cluster-system-key>${cluster_system_key}</cluster-system-key>
- <!--
- - For production sites, change dependency-check-interval to something
- - like 600s, so it only checks for updates every 10 minutes.
- -->
- <dependency-check-interval>${dependency_check_interval?:'2s'}</dependency-check-interval>
- <!-- For resin.properties dynamic cluster joining -->
- <home-cluster>${home_cluster}</home-cluster>
- <home-server>${home_server}</home-server>
- <elastic-server>${elastic_server}</elastic-server>
- <elastic-dns>${elastic_dns}</elastic-dns>
- <!--
- - Configures the main application cluster. Load-balancing configurations
- - will also have a web cluster.
- -->
- <cluster id="app">
- <!-- define the servers in the cluster -->
- <server-multi id-prefix="app-" address-list="${app_servers}" port="6800"/>
- <host-default>
- </host-default>
- <host host-name="inote.latencyzero.com" root-directory="/lz/var/www/com/latencyzero/inote">
- <access-log
- path="/logs/inote/access.log"
- format='%h %l %u %t "%r" %s %b "%{Referer}i" "%{User-Agent}i"'
- rollover-period="1W"
- archive-format="access-%Y-%W.log.gz"/>
- <stdout-log
- path="/logs/inote/stdout.log"
- timestamp="[%Y-%m-%d %H:%M:%S.%s] "
- rollover-period="1W"
- archive-format="stdout-%Y-%W.log.gz"/>
- <log-handler name=""
- level="all"
- path="/logs/inote/resin.log"
- rollover-period="1W"
- archive-format="out-%Y-%W.log.gz"
- timestamp="[%m-%d %H:%M:%S.%s] {%{thread}} "
- format=" ${log.level} (${log.name}) ${log.message}"/>
- <logger name="" level="info"/>
- <class-loader>
- <compiling-loader path="WEB-INF/classes"/>
- <tree-loader path="WEB-INF/lib"/>
- </class-loader>
- <web-app id="/" document-directory=".">
- <servlet servlet-name="directory" servlet-class="com.caucho.servlets.DirectoryServlet">
- <init enable="false"/>
- </servlet>
- <database>
- <jndi-name>jdbc/db</jndi-name>
- <max-connections>1024</max-connections>
- <max-idle-time>30s</max-idle-time>
- <driver>
- <type>sekrit</type>
- </driver>
- </database>
- <env-entry>
- <env-entry-name>log4j-init-file-path</env-entry-name>
- <env-entry-type>java.lang.String</env-entry-type>
- <env-entry-value>/lz/config/com/inote/log4j.xml</env-entry-value>
- </env-entry>
- </web-app>
- </host>
- </cluster>
- <cluster id="web">
- <!-- define the servers in the cluster -->
- <server-multi id-prefix="web-" address-list="${web_servers}" port="6810"/>
- <host id="" root-directory="web">
- <web-app id="">
- <resin:LoadBalance regexp="" cluster="app"/>
- </web-app>
- <web-app id="/async">
- <resin:LoadBalance regexp="" cluster="app"/>
- </web-app>
- </host>
- </cluster>
- <cluster id="memcached" xmlns:memcache="urn:java:com.caucho.memcached">
- <!-- define the servers in the cluster -->
- <server-multi id-prefix="memcached-" address-list="${memcached_servers}" port="6820">
- <!-- listen for the memcache protocol -->
- <listen port="${memcached_port?:11211}"
- keepalive-timeout="600s" socket-timeout="600s">
- <memcache:MemcachedProtocol/>
- </listen>
- </server-multi>
- </cluster>
- <cluster id="proxycache">
- <!-- define the servers in the cluster -->
- <server-multi id-prefix="proxycache-" address-list="${proxycache_servers}" port="6830"/>
- <host id="" root-directory="proxycache">
- <web-app id="">
- <resin:HttpProxy regexp=".*">
- <!-- backend HTTP servers to proxy to -->
- <addresses>${backend_servers}</addresses>
- </resin:HttpProxy>
- </web-app>
- </host>
- </cluster>
- </resin>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement