-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Labels
Description
We need a ticket to turn on HTTP compressed responses in Tomcat. We had it, but it got dropped in the change to encrypted DIT
We had this:
<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="1000000"
redirectPort="8443"
compression="force"
compressionMinSize="2048"
compressibleMimeType="text/html,text/xml,text/plain,text/css,text/javascript,application/javascript,application/octet-stream,application/vnd.opendap.dap4.dataset-services+xml,application/vnd.opendap.dap4.dataset-metadata+xml,application/vnd.opendap.dap4.data,application/vnd.opendap.dap4.error+xml,application/json,application/prs.coverage+json,application/rdf+xml,application/x-netcdf,image/tiff;application=geotiff"
/>And now that's commented out and instead we have this:
<Connector port="8443" protocol="org.apache.coyote.http11.Http11AprProtocol"
maxThreads="150" SSLEnabled="true" >
<UpgradeProtocol className="org.apache.coyote.http2.Http2Protocol" />
<SSLHostConfig>
<Certificate certificateKeyFile="/usr/share/tomcat/conf/NGAP-CA-certificate.key"
certificateFile="/usr/share/tomcat/conf/NGAP-CA-certificate.crt"
certificateChainFile="/usr/share/tomcat/conf/NGAP-CA-certificate-chain.crt"
type="RSA" />
</SSLHostConfig>
</Connector>No big deal, but well, egress $$
The value of the compressibleMimeType attribute should be reviewed against the Tomcat 9 documentation on what is actually acceptable as the value.