redacts bearer tokens from logs

This commit is contained in:
nai-degen 2023-04-11 03:39:24 -07:00 committed by nai-degen
parent 65c5cfeef2
commit a8340b0dd4
1 changed files with 5 additions and 1 deletions

View File

@ -19,7 +19,11 @@ app.use(
// SillyTavern spams the hell out of this endpoint so don't log it
autoLogging: { ignore: (req) => req.url === "/proxy/kobold/api/v1/model" },
redact: {
paths: ["req.headers.cookie", 'res.headers["set-cookie"]'],
paths: [
"req.headers.cookie",
'res.headers["set-cookie"]',
"req.headers.authorization",
],
censor: "********",
},
})