Skip to content

Commit

Permalink
Compression is enabled.
Browse files Browse the repository at this point in the history
Compression is enabled.
  • Loading branch information
infstar committed Jan 15, 2025
1 parent c88ab93 commit 3e23579
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions api/src/main/resources/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,11 @@ server:
io: 16
#port: ${HTTP_PORT}
max-http-request-header-size: 20000
compression:
enabled: ${ENABLE_COMPRESSION}
mime-types: application/json,application/xml,text/html,text/xml,text/plain,text/css,text/javascript,application/javascript
min-response-size: 2048
excluded-user-agents: MSIE 6.0,UCBrowser

#API Documentation
springdoc:
Expand Down
1 change: 1 addition & 0 deletions tools/config/update-configmap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ oc create -n "$BUSINESS_NAMESPACE"-"$envValue" configmap "$APP_NAME"-config-map
--from-literal=NUMBER_OF_PARTITIONS="15" \
--from-literal=PEN_STUDENT_API="http://student-api-master.$COMMON_NAMESPACE-$envValue.svc.cluster.local:8080/" \
--from-literal=TOKEN_EXPIRY_OFFSET="90" \
--from-literal=ENABLE_COMPRESSION="true" \
--dry-run=client -o yaml | oc apply -f -

echo Creating config map "$APP_NAME"-flb-sc-config-map
Expand Down

0 comments on commit 3e23579

Please sign in to comment.