From 3239871a1b95945532a42014e738e571cd39de97 Mon Sep 17 00:00:00 2001 From: Andreas Huber Date: Sat, 25 Apr 2020 12:51:42 +0200 Subject: [PATCH] enable HTTP compression --- .../src/main/resources/application.properties | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/pdb-ui/src/main/resources/application.properties b/pdb-ui/src/main/resources/application.properties index 72e2f75..fd5ce0a 100644 --- a/pdb-ui/src/main/resources/application.properties +++ b/pdb-ui/src/main/resources/application.properties @@ -8,11 +8,28 @@ logging.config=classpath:log4j2.xml server.port=17333 +spring.servlet.multipart.enabled=true spring.servlet.multipart.max-file-size=3000MB spring.servlet.multipart.max-request-size=3000MB +spring.servlet.multipart.file-size-threshold=2MB +#spring.servlet.multipart.location=/tmp + #spring.resources.cache.cachecontrol.cache-private=true #spring.resources.cache.cachecontrol.must-revalidate=true #spring.resources.cache.cachecontrol.max-age=31536000 -#spring.resources.static-locations=classpath:/static/ \ No newline at end of file +#spring.resources.static-locations=classpath:/static/ + + +# Enable response compression +server.compression.enabled=true + +# The comma-separated list of mime types that should be compressed +server.compression.mime-types=text/html,text/xml,text/plain,text/css,text/javascript,application/javascript,application/json + +# Compress the response only if the response size is at least 1KB +server.compression.min-response-size=1024 + +# Enable HTTP/2 support, if the current environment supports it +#server.http2.enabled=true