feat(medusa,utils): add server level configurable http compression (#3785)

* feat(medusa,utils): add server level configurable http compression

* chore: remove unwanted middleware

* chore: add a log for running compression

* chore: change package position

* chore: reposition options

* chore: change equality
This commit is contained in:
Riqwan Thamir
2023-04-13 12:39:13 +02:00
committed by GitHub
parent 1eab1b740f
commit 4f58ddee03
8 changed files with 91 additions and 16 deletions
+4
View File
@@ -5,6 +5,7 @@ const DB_NAME = process.env.DB_TEMP_NAME
const redisUrl = process.env.REDIS_URL || "redis://localhost:6379"
const cacheTTL = process.env.CACHE_TTL || 15
const enableResponseCompression = process.env.ENABLE_RESPONSE_COMPRESSION || true
module.exports = {
plugins: [],
@@ -14,6 +15,9 @@ module.exports = {
database_type: "postgres",
jwt_secret: "test",
cookie_secret: "test",
http_compression: {
enabled: enableResponseCompression
}
},
modules: {
cacheService: {