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.ts | |
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.ts')
-rw-r--r-- | server.ts | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -142,7 +142,7 @@ if (isTestInstance()) { | |||
142 | 142 | ||
143 | // For the logger | 143 | // For the logger |
144 | morgan.token('remote-addr', req => { | 144 | morgan.token('remote-addr', req => { |
145 | if (req.get('DNT') === '1') { | 145 | if (CONFIG.LOG.ANONYMIZE_IP === true || req.get('DNT') === '1') { |
146 | return anonymize(req.ip, 16, 16) | 146 | return anonymize(req.ip, 16, 16) |
147 | } | 147 | } |
148 | 148 | ||