chore: added builded files and compression
This commit is contained in:
parent
7b5c70a958
commit
f19a2749ec
97 changed files with 1545 additions and 0 deletions
|
|
@ -1,4 +1,5 @@
|
|||
const fs = require('fs')
|
||||
const compression = require('compression')
|
||||
const path = require('path')
|
||||
const express = require('express')
|
||||
const https = require('https')
|
||||
|
|
@ -29,6 +30,7 @@ if (!hostname) {
|
|||
|
||||
const app = express()
|
||||
app.use(helmet())
|
||||
app.use(compression())
|
||||
app.use(nocache())
|
||||
app.use(cookieParser())
|
||||
app.use(express.static(path.resolve(__dirname, '..', '..', 'public')))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue