redacts bearer tokens from logs
This commit is contained in:
+5
-1
@@ -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: "********",
|
||||
},
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user