diff options
Diffstat (limited to 'server.ts')
-rw-r--r-- | server.ts | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -56,8 +56,13 @@ try { | |||
56 | app.set('trust proxy', CONFIG.TRUST_PROXY) | 56 | app.set('trust proxy', CONFIG.TRUST_PROXY) |
57 | 57 | ||
58 | app.use((_req, res, next) => { | 58 | app.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 | ||