فهرست منبع

[Feature][API]enable response resources gzip compression (#4121)

* enable response compression

* add server.compression.mime-types with default value explicitly
Shiwen Cheng 4 سال پیش
والد
کامیت
763c65938d
1فایلهای تغییر یافته به همراه4 افزوده شده و 0 حذف شده
  1. 4 0
      dolphinscheduler-api/src/main/resources/application-api.properties

+ 4 - 0
dolphinscheduler-api/src/main/resources/application-api.properties

@@ -30,6 +30,10 @@ spring.jackson.time-zone=GMT+8
 spring.servlet.multipart.max-file-size=1024MB
 spring.servlet.multipart.max-request-size=1024MB
 
+# enable response compression
+server.compression.enabled=true
+server.compression.mime-types=text/html,text/xml,text/plain,text/css,text/javascript,application/javascript,application/json,application/xml
+
 #post content
 server.jetty.max-http-post-size=5000000