From 10fed4471c504ab32e90f9645ab159eb6c133cef Mon Sep 17 00:00:00 2001 From: Leonardo Menezes <mail@lmenezes.com> Date: Mon, 16 Oct 2017 14:36:30 +0200 Subject: [PATCH] enable gzip when requesting data from es --- conf/application.conf | 4 ++++ conf/reference.conf | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/conf/application.conf b/conf/application.conf index b328bd3..ec96f04 100644 --- a/conf/application.conf +++ b/conf/application.conf @@ -17,6 +17,10 @@ rest.history.size = 50 // defaults to 50 if not specified #data.path: "/var/lib/cerebro/cerebro.db" data.path = "./cerebro.db" +es = { + gzip = true +} + # Authentication auth = { # Example of LDAP authentication diff --git a/conf/reference.conf b/conf/reference.conf index f6965a6..da6cf2e 100644 --- a/conf/reference.conf +++ b/conf/reference.conf @@ -2,6 +2,11 @@ secret = "changeme" play.crypto.secret = ${secret} +es { + gzip = false +} +play.ws.compressionEnabled = ${es.gzip} + # The application languages play.i18n.langs = ["en"] -- GitLab