Skip to content
Snippets Groups Projects
Commit 1b15d8be authored by Makhtar DIAGNE's avatar Makhtar DIAGNE
Browse files

[TECH] Frontend : add gzip compression

parent 54bdc8b0
No related branches found
No related tags found
1 merge request!1Feature/design/1
......@@ -10,6 +10,10 @@ spring:
server:
host: {{ vitamui_struct.host }}
port: {{ vitamui_struct.port_service }}
compression:
enabled: true
mime-types: text/html,text/xml,text/plain,text/css,text/javascript,application/javascript,application/json
min-response-size: 1024
{% if vitamui.identity_admin.base_url is defined %}
servlet.context-path: /
servlet.session.cookie.path: /
......
......@@ -10,6 +10,10 @@ spring:
server:
host: {{ vitamui.identity.host }}
port: {{ vitamui.identity.port_service }}
compression:
enabled: true
mime-types: text/html,text/xml,text/plain,text/css,text/javascript,application/javascript,application/json
min-response-size: 1024
{% if vitamui.identity.base_url is undefined %}
servlet.context-path: /identity
servlet.session.cookie.path: /identity
......
......@@ -10,6 +10,10 @@ spring:
server:
host: {{ vitamui.portal.host }}
port: {{ vitamui.portal.port_service }}
compression:
enabled: true
mime-types: text/html,text/xml,text/plain,text/css,text/javascript,application/javascript,application/json
min-response-size: 1024
scheme: {% if vitamui.portal.secure|lower =='true' %}https{% else %}http{% endif %}
{% if vitamui.portal.secure|lower =='true' %}
......
......@@ -43,6 +43,10 @@ server:
key-store-password: changeme
key-password: changeme
servlet.session.cookie.path: /identity-api
compression:
enabled: true
mime-types: text/html,text/xml,text/plain,text/css,text/javascript,application/javascript,application/json
min-response-size: 1024
management:
server:
......
......@@ -44,6 +44,10 @@ server:
key-store-password: changeme
key-password: changeme
servlet.session.cookie.path: /identity
compression:
enabled: true
mime-types: text/html,text/xml,text/plain,text/css,text/javascript,application/javascript,application/json
min-response-size: 1024
management:
server:
......
......@@ -17,6 +17,10 @@ server:
key-store: src/main/config/keystore_ui-portal.jks
key-store-password: changeme
key-password: changeme
compression:
enabled: true
mime-types: text/html,text/xml,text/plain,text/css,text/javascript,application/javascript,application/json
min-response-size: 1024
management:
server:
address: localhost
......
......@@ -17,6 +17,10 @@ server:
key-store: src/main/config/keystore_ui-portal.jks
key-store-password: changeme
key-password: changeme
compression:
enabled: true
mime-types: text/html,text/xml,text/plain,text/css,text/javascript,application/javascript,application/json
min-response-size: 1024
management:
server:
address: localhost
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment