mirror of
https://bitbucket.org/atlassian-docker/docker-atlassian-confluence-server.git
synced 2024-08-30 18:22:16 +00:00
align with the other tomcat configuration environment variables
This commit is contained in:
parent
3dff504b32
commit
a5237d8ed4
@ -50,9 +50,9 @@
|
||||
<Manager pathname=""/>
|
||||
<Valve className="org.apache.catalina.valves.StuckThreadDetectionValve"
|
||||
threshold="60"/>
|
||||
{% if atl_access_log == 'true' %}
|
||||
{% 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_proxy_internal_ips | default('') }}" remoteIpHeader="x-forwarded-for" protocolHeader="x-forwarded-proto" requestAttributesEnabled="true" resolveHosts="false" />
|
||||
<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>
|
||||
|
||||
|
@ -283,8 +283,8 @@ def test_confluence_xml_cluster_tcp(docker_cli, image, run_user):
|
||||
|
||||
def test_confluence_xml_access_log(docker_cli, image, run_user):
|
||||
environment = {
|
||||
'ATL_ACCESS_LOG': 'true',
|
||||
'ATL_PROXY_INTERNAL_IPS': '192.168.1.1',
|
||||
'ATL_TOMCAT_ACCESS_LOG': 'true',
|
||||
'ATL_TOMCAT_PROXY_INTERNAL_IPS': '192.168.1.1',
|
||||
}
|
||||
container = run_image(docker_cli, image, user=run_user, environment=environment)
|
||||
_jvm = wait_for_proc(container, get_bootstrap_proc(container))
|
||||
@ -292,7 +292,7 @@ def test_confluence_xml_access_log(docker_cli, image, run_user):
|
||||
xml = parse_xml(container, f'{get_app_home(container)}/server.cfg.xml')
|
||||
valve = xml.find(".//Context/Valve[@className='org.apache.catalina.valves.RemoteIpValve']")
|
||||
|
||||
assert valve.get('internalProxies') == environment.get('ATL_PROXY_INTERNAL_IPS')
|
||||
assert valve.get('internalProxies') == environment.get('ATL_TOMCAT_PROXY_INTERNAL_IPS')
|
||||
|
||||
def test_java_in_run_user_path(docker_cli, image):
|
||||
RUN_USER = 'confluence'
|
||||
|
Loading…
Reference in New Issue
Block a user