diff --git a/rest/taskana-rest-spring-example-boot/src/main/resources/application-db2.properties b/rest/taskana-rest-spring-example-boot/src/main/resources/application-db2.properties index c9b37642a..44d1c024f 100644 --- a/rest/taskana-rest-spring-example-boot/src/main/resources/application-db2.properties +++ b/rest/taskana-rest-spring-example-boot/src/main/resources/application-db2.properties @@ -42,6 +42,11 @@ spring.resources.cache.cachecontrol.cache-private=true spring.servlet.multipart.max-file-size=10MB spring.servlet.multipart.max-request-size=10MB +####### serve compressed files for faster UI loading times +server.compression.enabled=true +server.compression.mime-types=application/json,application/xml,text/html,text/xml,text/plain,application/javascript,text/css,image/svg+xml +server.compression.min-response-size=10240 + spring.main.allow-bean-definition-overriding=true server.tomcat.max-http-post-size=-1 diff --git a/rest/taskana-rest-spring-example-boot/src/main/resources/application-postgres.properties b/rest/taskana-rest-spring-example-boot/src/main/resources/application-postgres.properties index 1f740cc46..abe77cbdb 100644 --- a/rest/taskana-rest-spring-example-boot/src/main/resources/application-postgres.properties +++ b/rest/taskana-rest-spring-example-boot/src/main/resources/application-postgres.properties @@ -61,6 +61,12 @@ spring.resources.cache.cachecontrol.cache-private=true spring.servlet.multipart.max-file-size=10MB spring.servlet.multipart.max-request-size=10MB +####### serve compressed files for faster UI loading times +server.compression.enabled=true +server.compression.mime-types=application/json,application/xml,text/html,text/xml,text/plain,application/javascript,text/css,image/svg+xml +server.compression.min-response-size=10240 + + spring.main.allow-bean-definition-overriding=true server.tomcat.max-http-post-size=-1 diff --git a/rest/taskana-rest-spring-example-boot/src/main/resources/application.properties b/rest/taskana-rest-spring-example-boot/src/main/resources/application.properties index 755da7800..48e8eacbe 100644 --- a/rest/taskana-rest-spring-example-boot/src/main/resources/application.properties +++ b/rest/taskana-rest-spring-example-boot/src/main/resources/application.properties @@ -42,6 +42,11 @@ spring.resources.cache.cachecontrol.cache-private=true spring.servlet.multipart.max-file-size=10MB spring.servlet.multipart.max-request-size=10MB +####### serve compressed files for faster UI loading times +server.compression.enabled=true +server.compression.mime-types=application/json,application/xml,text/html,text/xml,text/plain,application/javascript,text/css,image/svg+xml +server.compression.min-response-size=10240 + spring.main.allow-bean-definition-overriding=true server.tomcat.max-http-post-size=-1 diff --git a/rest/taskana-rest-spring-example-wildfly/src/main/resources/application-postgres.properties b/rest/taskana-rest-spring-example-wildfly/src/main/resources/application-postgres.properties index 583f964fc..a41fbe88a 100644 --- a/rest/taskana-rest-spring-example-wildfly/src/main/resources/application-postgres.properties +++ b/rest/taskana-rest-spring-example-wildfly/src/main/resources/application-postgres.properties @@ -22,10 +22,20 @@ taskana.ldap.groupNameAttribute=cn taskana.ldap.minSearchForLength=3 taskana.ldap.maxNumberOfReturnedAccessIds=50 taskana.ldap.groupsOfUser=memberUid + ####### JobScheduler cron expression that specifies when the JobSchedler runs taskana.jobscheduler.async.cron=0 * * * * * + +####### serve compressed files for faster UI loading times +server.compression.enabled=true +server.compression.mime-types=application/json,application/xml,text/html,text/xml,text/plain,application/javascript,text/css,image/svg+xml +server.compression.min-response-size=10240 + ####### cache static resources properties spring.resources.cache.cachecontrol.cache-private=true + ####### tomcat is not detecting the x-forward headers from bluemix as a trustworthy proxy server.tomcat.remoteip.internal-proxies=.* server.forward-headers-strategy=native + + diff --git a/rest/taskana-rest-spring-example-wildfly/src/main/resources/application.properties b/rest/taskana-rest-spring-example-wildfly/src/main/resources/application.properties index cf1dd1c08..a60912378 100644 --- a/rest/taskana-rest-spring-example-wildfly/src/main/resources/application.properties +++ b/rest/taskana-rest-spring-example-wildfly/src/main/resources/application.properties @@ -33,6 +33,11 @@ spring.resources.cache.cachecontrol.cache-private=true spring.servlet.multipart.max-file-size=10MB spring.servlet.multipart.max-request-size=10MB +####### serve compressed files for faster UI loading times +server.compression.enabled=true +server.compression.mime-types=application/json,application/xml,text/html,text/xml,text/plain,application/javascript,text/css,image/svg+xml +server.compression.min-response-size=10240 + spring.main.allow-bean-definition-overriding=true server.tomcat.max-http-form-post-size=-1