diff options
author | Chocobozzz <me@florianbigard.com> | 2019-12-12 17:15:38 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-12-12 17:15:38 +0100 |
commit | 2f6b5e2d6ebcac88d9005ea2654ffa77907d5db2 (patch) | |
tree | f6890c9f7acbccb05157c876c20b0f684eb80836 /server/initializers | |
parent | 22a73cb879a5cc775d4bec3d72fa9c9cf52e5175 (diff) | |
download | PeerTube-2f6b5e2d6ebcac88d9005ea2654ffa77907d5db2.tar.gz PeerTube-2f6b5e2d6ebcac88d9005ea2654ffa77907d5db2.tar.zst PeerTube-2f6b5e2d6ebcac88d9005ea2654ffa77907d5db2.zip |
Add max file size, max files and ip anonymize log options
Diffstat (limited to 'server/initializers')
-rw-r--r-- | server/initializers/config.ts | 7 |
1 files changed, 6 insertions, 1 deletions
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 = { | |||
93 | TRUST_PROXY: config.get<string[]>('trust_proxy'), | 93 | TRUST_PROXY: config.get<string[]>('trust_proxy'), |
94 | LOG: { | 94 | LOG: { |
95 | LEVEL: config.get<string>('log.level'), | 95 | LEVEL: config.get<string>('log.level'), |
96 | ROTATION: config.get<boolean>('log.rotation.enabled') | 96 | ROTATION: { |
97 | ENABLED: config.get<boolean>('log.rotation.enabled'), | ||
98 | MAX_FILE_SIZE: bytes.parse(config.get<string>('log.rotation.maxFileSize')), | ||
99 | MAX_FILES: config.get<number>('log.rotation.maxFiles') | ||
100 | }, | ||
101 | ANONYMIZE_IP: config.get<boolean>('log.anonymizeIP') | ||
97 | }, | 102 | }, |
98 | SEARCH: { | 103 | SEARCH: { |
99 | REMOTE_URI: { | 104 | REMOTE_URI: { |