Adding GZIP compression to Tomcat server

This commit is contained in:
iadgovuser59 2024-03-28 16:15:56 -04:00 committed by chubtub
parent ea56a71ed7
commit 52053e0f3a

View File

@ -12,7 +12,7 @@ jakarta.persistence.sharedCache.mode = UNSPECIFIED
spring.datasource.driver-class-name=org.mariadb.jdbc.Driver
# Tomcat Config
server.tomcat.additional-tld-skip-patterns=jakarta.persistence-api*.jar, jakarta.xml.bind-api*.jar, txw2*.jar, *commons*.jar, *annotations*.jar, *checker*.jar, *lombok*.jar, *jsr*.jar, *guava*.jar, *access*.jar, *activation*.jar, *bcprov*.jar, *bcmail*.jar, *bcutil*.jar, *bcpkix*.jar, *json*.jar
server.tomcat.additional-tld-skip-patterns=jakarta.persistence-api*.jar, jakarta.xml.bind-api*.jar, txw2*.jar, *commons*.jar, *annotations*.jar, *checker*.jar, *lombok*.jar, *jsr*.jar, *guava*.jar, *access*.jar, *activation*.jar, *bcprov*.jar, *bcmail*.jar, *bcutil*.jar, *bcpkix*.jar, *json*.jar
server.tomcat.basedir=/opt/embeddedtomcat
server.servlet.register-default-servlet=true
server.servlet.context-path=/
@ -38,3 +38,9 @@ server.ssl.key-alias=hirs_aca_tls_rsa_3k_sha384
# ACA specific default properties
aca.certificates.validity = 3652
# Compression settings
server.compression.enabled=true
# Compression content types
server.compression.mime-types=application/javascript,application/json,application/xml,text/css,text/html,text/plain,text/xml
# Minimum response size for compression
server.compression.min-response-size=2048