Skip to content

Commit

Permalink
Enable GZip Compression βœοΈπŸ“— :octocat: πŸ³β¬†
Browse files Browse the repository at this point in the history
  • Loading branch information
hendisantika committed Mar 10, 2024
1 parent 06845b5 commit f759c65
Showing 1 changed file with 16 additions and 11 deletions.
27 changes: 16 additions & 11 deletions src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ spring:
format_sql: true
flyway:
enabled: true
check-location: true
locations: classpath:/db/migration
# Templates reloading during development
fail-on-missing-locations: true
# Templates reloading during development
thymeleaf:
cache: false
check-template: true
Expand All @@ -36,17 +36,17 @@ spring:
livereload:
enabled: true
add-properties: true
resources:
static-locations: file:src/main/resources/static/
# static-locations: ${project.basedir}/src/main/resources/static/
cache:
period: 0
servlet:
multipart:
max-file-size: 5MB
max-request-size: 5MB
enabled: true
location: ${java.io.tmpdir}
web:
resources:
static-locations: file:src/main/resources/static/
cache:
period: 0

#We can use the httpOnly and secure flags to secure our session cookie:
#
Expand All @@ -57,13 +57,18 @@ server:
threads:
max: 200
max-swallow-size: 2MB
max-http-post-size: 2MB
connection-timeout: 5s
max-http-header-size: 100KB
max-http-form-post-size: 2MB
connection-timeout: 5s
servlet:
session:
cookie:
http-only: true
max-http-request-header-size: 100KB
compression:
enabled: true
mime-types: application/json,application/xml,text/html,text/xml,text/plain
min-response-size: 1024
excluded-user-agents: MSIE 6.0,UCBrowser
# secure: true

# 1 days = 1 * 24 * 60 * 60
Expand All @@ -73,4 +78,4 @@ cookie:


#hendisantika/password
#admin/password
#admin/password

0 comments on commit f759c65

Please sign in to comment.