From 10302426f0e338958c87f85888817290537c3066 Mon Sep 17 00:00:00 2001 From: dannylamb Date: Thu, 3 Mar 2022 16:02:40 -0400 Subject: [PATCH] Missed a tomcat connection timeout when auditing for timeouts earlier. --- tomcat/Dockerfile | 1 + .../rootfs/etc/confd/conf.d/server.xml.toml | 7 + .../etc/confd/templates/server.xml.tmpl | 171 ++++++++++++++++++ 3 files changed, 179 insertions(+) create mode 100644 tomcat/rootfs/etc/confd/conf.d/server.xml.toml create mode 100644 tomcat/rootfs/etc/confd/templates/server.xml.tmpl diff --git a/tomcat/Dockerfile b/tomcat/Dockerfile index 0afa1484..0096c734 100644 --- a/tomcat/Dockerfile +++ b/tomcat/Dockerfile @@ -27,6 +27,7 @@ ENV \ TOMCAT_ADMIN_NAME=admin \ TOMCAT_ADMIN_PASSWORD=password \ TOMCAT_ADMIN_ROLES=manager-gui \ + TOMCAT_CONNECTION_TIMEOUT=20000 \ TOMCAT_CATALINA_OPTS= \ TOMCAT_JAVA_OPTS= \ TOMCAT_LOG_LEVEL=ALL \ diff --git a/tomcat/rootfs/etc/confd/conf.d/server.xml.toml b/tomcat/rootfs/etc/confd/conf.d/server.xml.toml new file mode 100644 index 00000000..ef088afe --- /dev/null +++ b/tomcat/rootfs/etc/confd/conf.d/server.xml.toml @@ -0,0 +1,7 @@ +[template] +src = "server.xml.tmpl" +dest = "/opt/tomcat/conf/server.xml" +uid = 100 +gid = 1000 +mode = "0640" +keys = [ "/" ] diff --git a/tomcat/rootfs/etc/confd/templates/server.xml.tmpl b/tomcat/rootfs/etc/confd/templates/server.xml.tmpl new file mode 100644 index 00000000..ae6a5f31 --- /dev/null +++ b/tomcat/rootfs/etc/confd/templates/server.xml.tmpl @@ -0,0 +1,171 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +