<?xml version="1.0" encoding="utf-8"?>

<Server port="8000"
        shutdown="SHUTDOWN">

  <Service name="Catalina">

    <Connector port="8090"
               maxThreads="48"
               minSpareThreads="10"
               connectionTimeout="20000"
               enableLookups="false"
               protocol="org.apache.coyote.http11.Http11NioProtocol"
               redirectPort="8443"
               acceptCount="10"
               debug="0"
               URIEncoding="UTF-8"
               secure="false"
               scheme="https"
               proxyName="zhengyu1992.cn"
               proxyPort="443"
               maxHttpHeaderSize="8192" />

    <Engine name="Standalone"
            defaultHost="localhost"
            debug="0">
      <Host name="localhost"
            debug="0"
            appBase="webapps"
            unpackWARs="true"
            autoDeploy="false"
            startStopThreads="4">
        <Context path="/wiki"
                 docBase="../confluence"
                 debug="0"
                 reloadable="false"
                 useHttpOnly="true">
          <!-- Logging configuration for Confluence is specified in confluence/WEB-INF/classes/log4j.properties -->
          <Manager pathname=""/>
          <Valve className="org.apache.catalina.valves.StuckThreadDetectionValve"
                 threshold="60"/>
        
          <Valve className="org.apache.catalina.valves.AccessLogValve"
                 requestAttributesEnabled="true"
                 directory="logs"
                 prefix="confluence_access"
                 suffix=".log"
                 rotatable="true"
                 pattern="%h %{X-AUSERNAME}o %t &quot;%r&quot; %s %b %D %U %I &quot;%{User-Agent}i&quot;" 
                 maxDays="-1"/>
          <Valve className="org.apache.catalina.valves.RemoteIpValve"
                 proxiesHeader="x-forwarded-by"
                 internalProxies=""
                 remoteIpHeader="x-forwarded-for"
                 protocolHeader="x-forwarded-proto"
                 requestAttributesEnabled="true"
                 resolveHosts="false" />
        
        </Context>

        <Context path="${confluence.context.path}/synchrony-proxy"
                 docBase="../synchrony-proxy"
                 debug="0"
                 reloadable="false"
                 useHttpOnly="true">
          <Valve className="org.apache.catalina.valves.StuckThreadDetectionValve"
                 threshold="60"/>
        </Context>

      </Host>
    </Engine>

  </Service>

</Server>

