aboutsummaryrefslogtreecommitdiffhomepage
path: root/server.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server.ts')
-rw-r--r--server.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/server.ts b/server.ts
index d1ac2d092..7bab18b0c 100644
--- a/server.ts
+++ b/server.ts
@@ -56,8 +56,13 @@ try {
56app.set('trust proxy', CONFIG.TRUST_PROXY) 56app.set('trust proxy', CONFIG.TRUST_PROXY)
57 57
58app.use((_req, res, next) => { 58app.use((_req, res, next) => {
59 // OpenTelemetry
59 res.locals.requestStart = Date.now() 60 res.locals.requestStart = Date.now()
60 61
62 if (CONFIG.SECURITY.POWERED_BY_HEADER.ENABLED === true) {
63 res.setHeader('x-powered-by', 'PeerTube')
64 }
65
61 return next() 66 return next()
62}) 67})
63 68