mirror of
https://bitbucket.org/atlassian-docker/docker-atlassian-confluence-server.git
synced 2024-08-30 18:22:16 +00:00
Add README entry about new setting and misc. formatting cleanups.
This commit is contained in:
parent
6aea6a1cb4
commit
ec4b4bcc45
@ -110,6 +110,15 @@ of the setup. They can be controlled via the below environment variables.
|
||||
The context path the application is served over. `CATALINA_CONTEXT_PATH` is
|
||||
also supported for backwards compatability.
|
||||
|
||||
* `ATL_TOMCAT_ACCESS_LOG` (default: false)
|
||||
|
||||
Whether to enable Tomcat access logging; set to `true` to enable. *NOTE*:
|
||||
These logs are written to the Container internal volume by default (under
|
||||
`/opt/atlassian/confluence/logs/`); these are rotated but not removed, and
|
||||
will grow indefinitely. If you enable this functionality it is recommended
|
||||
that you map the directory to a volume and perform log ingestion/cleanup with
|
||||
external tools.
|
||||
|
||||
The following Tomcat/Catalina options are also supported. For more information,
|
||||
see https://tomcat.apache.org/tomcat-7.0-doc/config/index.html.
|
||||
|
||||
|
@ -51,8 +51,20 @@
|
||||
<Valve className="org.apache.catalina.valves.StuckThreadDetectionValve"
|
||||
threshold="60"/>
|
||||
{% if atl_tomcat_access_log == 'true' %}
|
||||
<Valve className="org.apache.catalina.valves.AccessLogValve" requestAttributesEnabled="true" directory="logs" prefix="confluence_access" suffix=".log" rotatable="true" pattern="%h %{X-AUSERNAME}o %t "%r" %s %b %D %U %I "%{User-Agent}i"" />
|
||||
<Valve className="org.apache.catalina.valves.RemoteIpValve" proxiesHeader="x-forwarded-by" internalProxies="{{ atl_tomcat_proxy_internal_ips | default('') }}" remoteIpHeader="x-forwarded-for" protocolHeader="x-forwarded-proto" requestAttributesEnabled="true" resolveHosts="false" />
|
||||
<Valve className="org.apache.catalina.valves.AccessLogValve"
|
||||
requestAttributesEnabled="true"
|
||||
directory="logs"
|
||||
prefix="confluence_access"
|
||||
suffix=".log"
|
||||
rotatable="true"
|
||||
pattern="%h %{X-AUSERNAME}o %t "%r" %s %b %D %U %I "%{User-Agent}i"" />
|
||||
<Valve className="org.apache.catalina.valves.RemoteIpValve"
|
||||
proxiesHeader="x-forwarded-by"
|
||||
internalProxies="{{ atl_tomcat_proxy_internal_ips | default('') }}"
|
||||
remoteIpHeader="x-forwarded-for"
|
||||
protocolHeader="x-forwarded-proto"
|
||||
requestAttributesEnabled="true"
|
||||
resolveHosts="false" />
|
||||
{% endif %}
|
||||
</Context>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user