|
|
@ -34,12 +34,14 @@ class HttpServer { |
|
|
|
this.app.set('trust proxy', 'loopback') |
|
|
|
|
|
|
|
// Middlewares for json responses and requests logging
|
|
|
|
this.app.use('/static', sirv('../static')); |
|
|
|
this.app.use(HttpServer.setJSONResponse) |
|
|
|
this.app.use(HttpServer.requestLogger) |
|
|
|
this.app.use(HttpServer.setCrossOrigin) |
|
|
|
this.app.use(HttpServer.setConnection) |
|
|
|
this.app.use(helmet(HttpServer.HELMET_POLICY)) |
|
|
|
|
|
|
|
this.app.use('/static', sirv('../static')); |
|
|
|
|
|
|
|
this.app.use(HttpServer.setJSONResponse) |
|
|
|
this.app.use(HttpServer.setConnection) |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|