aboutsummaryrefslogtreecommitdiffhomepage
path: root/server.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-12-12 17:15:38 +0100
committerChocobozzz <me@florianbigard.com>2019-12-12 17:15:38 +0100
commit2f6b5e2d6ebcac88d9005ea2654ffa77907d5db2 (patch)
treef6890c9f7acbccb05157c876c20b0f684eb80836 /server.ts
parent22a73cb879a5cc775d4bec3d72fa9c9cf52e5175 (diff)
downloadPeerTube-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.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/server.ts b/server.ts
index b2541eed6..8df3add2c 100644
--- a/server.ts
+++ b/server.ts
@@ -142,7 +142,7 @@ if (isTestInstance()) {
142 142
143// For the logger 143// For the logger
144morgan.token('remote-addr', req => { 144morgan.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