Skip to content

Commit

Permalink
chore(cu): add helmet
Browse files Browse the repository at this point in the history
  • Loading branch information
TillaTheHun0 committed Jan 4, 2024
1 parent 3f24809 commit 2bcb6e8
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
14 changes: 14 additions & 0 deletions servers/cu/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions servers/cu/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"debug": "^4.3.4",
"express": "^4.18.2",
"heapdump": "^0.3.15",
"helmet": "^7.1.0",
"hyper-async": "^1.1.2",
"lru-cache": "^10.1.0",
"ms": "^2.1.3",
Expand Down
2 changes: 2 additions & 0 deletions servers/cu/src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import heapdump from 'heapdump'
import { pipe } from 'ramda'
import express from 'express'
import cors from 'cors'
import helmet from 'helmet'

import { logger } from './logger.js'
import { config } from './config.js'
Expand All @@ -12,6 +13,7 @@ export const server = pipe(
/**
* Allows us to download heapdumps, if created
*/
(app) => app.use(helmet()),
(app) => app.use(express.static(config.DUMP_PATH)),
(app) => app.use(cors()),
(app) => app.use(express.json({ type: 'application/json' })),
Expand Down

0 comments on commit 2bcb6e8

Please sign in to comment.