BVB Source Codes

che Show server.xml Source code

Return Download che: download server.xml Source code - Download che Source code - Type:.xml
  1. <?xml version='1.0' encoding='utf-8'?>
  2. <!--
  3.  Licensed to the Apache Software Foundation (ASF) under one or more
  4.  contributor license agreements.  See the NOTICE file distributed with
  5.  this work for additional information regarding copyright ownership.
  6.  The ASF licenses this file to You under the Apache License, Version 2.0
  7.  (the "License"); you may not use this file except in compliance with
  8.  the License.  You may obtain a copy of the License at
  9.  
  10.      http://www.apache.org/licenses/LICENSE-2.0
  11.  
  12.  Unless required by applicable law or agreed to in writing, software
  13.  distributed under the License is distributed on an "AS IS" BASIS,
  14.  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  15.  See the License for the specific language governing permissions and
  16.  limitations under the License.
  17. -->
  18. <!-- Note:  A "Server" is not itself a "Container", so you may not
  19.     define subcomponents such as "Valves" at this level.
  20.     Documentation at /docs/config/server.html
  21. -->
  22. <Server port="8005" shutdown="SHUTDOWN">
  23.   <Listener className="org.apache.catalina.startup.VersionLoggerListener" />
  24.   <!-- Security listener. Documentation at /docs/config/listeners.html
  25.  <Listener className="org.apache.catalina.security.SecurityListener" />
  26.  -->
  27.   <!--APR library loader. Documentation at /docs/apr.html >
  28.  <Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" />
  29.  -->
  30.   <!-- Prevent memory leaks due to use of particular java/javax APIs-->
  31.   <Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener" />
  32.   <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
  33.   <Listener className="org.apache.catalina.core.ThreadLocalLeakPreventionListener" />
  34.   <Listener className="org.apache.catalina.mbeans.JmxRemoteLifecycleListener" rmiRegistryPortPlatform="32001"
  35.              rmiServerPortPlatform="32101"/>
  36.  
  37.   <!-- Global JNDI resources
  38.       Documentation at /docs/jndi-resources-howto.html
  39.  -->
  40.   <GlobalNamingResources>
  41.     <!-- Editable user database that can also be used by
  42.         UserDatabaseRealm to authenticate users
  43.    -->
  44.     <!--Resource name="UserDatabase" auth="Container"
  45.              type="org.apache.catalina.UserDatabase"
  46.              description="User database that can be updated and saved"
  47.              factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
  48.              pathname="conf/tomcat-users.xml" /-->
  49.  
  50.       <Resource name="che" auth="Container"
  51.                type="javax.sql.DataSource"
  52.                driverClassName="org.h2.Driver"
  53.                url="jdbc:h2:che"
  54.                username="" password=""
  55.                maxTotal="8"
  56.                maxIdle="4"/>
  57.   </GlobalNamingResources>
  58.  
  59.   <!-- A "Service" is a collection of one or more "Connectors" that share
  60.       a single "Container" Note:  A "Service" is not itself a "Container",
  61.       so you may not define subcomponents such as "Valves" at this level.
  62.       Documentation at /docs/config/service.html
  63.   -->
  64.   <Service name="Catalina">
  65.  
  66.     <!--The connectors can use a shared executor, you can define one or more named thread pools-->
  67.     <!--
  68.    <Executor name="tomcatThreadPool" namePrefix="catalina-exec-"
  69.        maxThreads="150" minSpareThreads="4"/>
  70.    -->
  71.  
  72.  
  73.     <!-- A "Connector" represents an endpoint by which requests are received
  74.         and responses are returned. Documentation at :
  75.         Java HTTP Connector: /docs/config/http.html (blocking & non-blocking)
  76.         Java AJP  Connector: /docs/config/ajp.html
  77.         APR (HTTP/AJP) Connector: /docs/apr.html
  78.         Define a non-SSL/TLS HTTP/1.1 Connector on port 8080
  79.    -->
  80.       <Connector port="${port.http}" protocol="org.apache.coyote.http11.Http11NioProtocol"
  81.                 connectionTimeout="20000"
  82.                 maxThreads="300"
  83.                 compression="on"
  84.                 compressionMinSize="2048"
  85.                 noCompressionUserAgents=".*MSIE 6.*"
  86.                 compressableMimeType="text/html,text/xml,text/plain,text/css,text/javascript,application/json,application/javascript"
  87.                 redirectPort="8443"/>
  88.     <!-- A "Connector" using the shared thread pool-->
  89.     <!--
  90.    <Connector executor="tomcatThreadPool"
  91.               port="8080" protocol="HTTP/1.1"
  92.               connectionTimeout="20000"
  93.               redirectPort="8443" />
  94.    -->
  95.     <!-- Define a SSL/TLS HTTP/1.1 Connector on port 8443
  96.         This connector uses the NIO implementation that requires the JSSE
  97.         style configuration. When using the APR/native implementation, the
  98.         OpenSSL style configuration is required as described in the APR/native
  99.         documentation -->
  100.     <!--
  101.    <Connector port="8443" protocol="org.apache.coyote.http11.Http11NioProtocol"
  102.               maxThreads="150" SSLEnabled="true" scheme="https" secure="true"
  103.               clientAuth="false" sslProtocol="TLS" />
  104.    -->
  105.  
  106.     <!-- Define an AJP 1.3 Connector on port 8009 -->
  107.     <!--Connector port="8009" protocol="AJP/1.3" redirectPort="8443" /-->
  108.  
  109.  
  110.     <!-- An Engine represents the entry point (within Catalina) that processes
  111.         every request.  The Engine implementation for Tomcat stand alone
  112.         analyzes the HTTP headers included with the request, and passes them
  113.         on to the appropriate Host (virtual host).
  114.         Documentation at /docs/config/engine.html -->
  115.  
  116.     <!-- You should set jvmRoute to support load-balancing via AJP ie :
  117.    <Engine name="Catalina" defaultHost="localhost" jvmRoute="jvm1">
  118.    -->
  119.     <Engine name="Catalina" defaultHost="localhost">
  120.  
  121.       <!--For clustering, please take a look at documentation at:
  122.          /docs/cluster-howto.html  (simple how to)
  123.          /docs/config/cluster.html (reference documentation) -->
  124.       <!--
  125.      <Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"/>
  126.      -->
  127.  
  128.       <!-- Use the LockOutRealm to prevent attempts to guess user passwords
  129.           via a brute-force attack -->
  130.       <Realm className="org.apache.catalina.realm.LockOutRealm">
  131.         <!-- This Realm uses the UserDatabase configured in the global JNDI
  132.             resources under the key "UserDatabase".  Any edits
  133.             that are performed against this UserDatabase are immediately
  134.             available for use by the Realm.  -->
  135.         <!--Realm className="org.apache.catalina.realm.UserDatabaseRealm"
  136.               resourceName="UserDatabase"/-->
  137.       </Realm>
  138.  
  139.       <Host name="localhost"  appBase="webapps"
  140.            unpackWARs="true" autoDeploy="false">
  141.  
  142.  
  143.         <!-- Provide Che Agent binaries (like workspace agent, terminal) -->
  144.         <Context docBase="${che.home}/lib" path="/agent-binaries" />
  145.  
  146.         <!-- SingleSignOn valve, share authentication between web applications
  147.             Documentation at: /docs/config/valve.html -->
  148.         <!--
  149.        <Valve className="org.apache.catalina.authenticator.SingleSignOn" />
  150.        -->
  151.          <Valve className="org.apache.catalina.valves.RemoteIpValve" protocolHeader="X-Forwarded-Proto"
  152.                 internalProxies="\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}"/>
  153.  
  154.           <!-- Access log processes all example.
  155.               Documentation at: /docs/config/valve.html
  156.               Note: The pattern used is equivalent to using pattern="common" -->
  157.         <Valve className="ch.qos.logback.access.tomcat.LogbackValve" quiet="true"
  158.               filename="${catalina.home}/conf/logback-access-localhost.xml" />
  159.  
  160.       </Host>
  161.     </Engine>
  162.   </Service>
  163. </Server>
  164.  
downloadserver.xml Source code - Download che Source code
Related Source Codes/Software:
Gource - oftware version control visualization ... 2017-01-10
FDFullscreenPopGesture - A UINavigationController's category to enable full... 2017-01-10
node-style-guide - A guide for styling your node.js / JavaScript code... 2017-01-09
ImageOptim - GUI image optimizer for Mac htt... 2017-01-09
falcon - Falcon is a low-level, high-performance Python fra... 2017-01-09
notepad-plus-plus - Notepad++ official repository h... 2017-01-10
waterline - An adapter-based ORM for Node.js with support for ... 2017-01-10
Workerman - An asynchronous event driven PHP framework for eas... 2017-01-10
structor - An advanced visual editor for React components ... 2017-01-10
golearn - Machine Learning for Go 2017-01-10
discover-flask - Full Stack Web Development with Flask. ... 2017-01-12
spring-mvc-showcase - Demonstrates the features of the Spring MVC web fr... 2017-01-12
tushare - TuShare is a utility for crawling historical data ... 2017-01-12
raml-spec - RAML Specification http://raml.... 2017-01-12
android-stackblur - Android StackBlur is a library that can perform a ... 2017-01-12
sound-redux - A Soundcloud client built with React / Redux ... 2017-01-12
httpstat - curl statistics made simple 2017-01-12
vim - Vim configuration file and plug-ins 2017-01-12
appframework - The definitive HTML5 mobile javascript framework ... 2017-01-12
BaiduExporter - Assistant for Baidu to export download links to ar... 2017-01-11

 Back to top