From 2f6b5e2d6ebcac88d9005ea2654ffa77907d5db2 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 12 Dec 2019 17:15:38 +0100 Subject: Add max file size, max files and ip anonymize log options --- server/initializers/config.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'server/initializers') diff --git a/server/initializers/config.ts b/server/initializers/config.ts index c6e478f57..95b069533 100644 --- a/server/initializers/config.ts +++ b/server/initializers/config.ts @@ -93,7 +93,12 @@ const CONFIG = { TRUST_PROXY: config.get('trust_proxy'), LOG: { LEVEL: config.get('log.level'), - ROTATION: config.get('log.rotation.enabled') + ROTATION: { + ENABLED: config.get('log.rotation.enabled'), + MAX_FILE_SIZE: bytes.parse(config.get('log.rotation.maxFileSize')), + MAX_FILES: config.get('log.rotation.maxFiles') + }, + ANONYMIZE_IP: config.get('log.anonymizeIP') }, SEARCH: { REMOTE_URI: { -- cgit v1.2.3