mirror of
https://github.com/techno-tim/littlelink-server.git
synced 2025-01-25 15:31:21 +01:00
fix(node): removed helmet; users will use reverse proxy
This commit is contained in:
parent
b8abe89008
commit
e1d84631ef
11
app.js
11
app.js
@ -1,19 +1,8 @@
|
||||
require('dotenv').config()
|
||||
const express = require('express')
|
||||
const helmet = require("helmet");
|
||||
const morgan = require('morgan')
|
||||
const compression = require('compression')
|
||||
|
||||
const app = express();
|
||||
app.use(
|
||||
helmet.contentSecurityPolicy({
|
||||
useDefaults: true,
|
||||
directives: {
|
||||
"img-src": '* data:', // this is needed to load images off site
|
||||
upgradeInsecureRequests: false, // you should use SSL, this is disabled for internal use
|
||||
},
|
||||
})
|
||||
);
|
||||
app.use(morgan('combined'));
|
||||
app.use(express.static('www'));
|
||||
app.use(compression())
|
||||
|
@ -31,9 +31,7 @@
|
||||
"homepage": "https://github.com/timothystewart6/littlelink#readme",
|
||||
"dependencies": {
|
||||
"compression": "^1.7.4",
|
||||
"dotenv": "^10.0.0",
|
||||
"express": "^4.17.1",
|
||||
"helmet": "^4.6.0",
|
||||
"morgan": "^1.10.0"
|
||||
}
|
||||
}
|
||||
|
10
yarn.lock
10
yarn.lock
@ -112,11 +112,6 @@ destroy@~1.0.4:
|
||||
resolved "https://registry.yarnpkg.com/destroy/-/destroy-1.0.4.tgz#978857442c44749e4206613e37946205826abd80"
|
||||
integrity sha1-l4hXRCxEdJ5CBmE+N5RiBYJqvYA=
|
||||
|
||||
dotenv@^10.0.0:
|
||||
version "10.0.0"
|
||||
resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-10.0.0.tgz#3d4227b8fb95f81096cdd2b66653fb2c7085ba81"
|
||||
integrity sha512-rlBi9d8jpv9Sf1klPjNfFAuWDjKLwTIJJ/VxtoTwIR6hnZxcEOQCZg2oIL3MWBYw5GpUDKOEnND7LXTbIpQ03Q==
|
||||
|
||||
ee-first@1.1.1:
|
||||
version "1.1.1"
|
||||
resolved "https://registry.yarnpkg.com/ee-first/-/ee-first-1.1.1.tgz#590c61156b0ae2f4f0255732a158b266bc56b21d"
|
||||
@ -196,11 +191,6 @@ fresh@0.5.2:
|
||||
resolved "https://registry.yarnpkg.com/fresh/-/fresh-0.5.2.tgz#3d8cadd90d976569fa835ab1f8e4b23a105605a7"
|
||||
integrity sha1-PYyt2Q2XZWn6g1qx+OSyOhBWBac=
|
||||
|
||||
helmet@^4.6.0:
|
||||
version "4.6.0"
|
||||
resolved "https://registry.yarnpkg.com/helmet/-/helmet-4.6.0.tgz#579971196ba93c5978eb019e4e8ec0e50076b4df"
|
||||
integrity sha512-HVqALKZlR95ROkrnesdhbbZJFi/rIVSoNq6f3jA/9u6MIbTsPh3xZwihjeI5+DO/2sOV6HMHooXcEOuwskHpTg==
|
||||
|
||||
http-errors@1.7.2:
|
||||
version "1.7.2"
|
||||
resolved "https://registry.yarnpkg.com/http-errors/-/http-errors-1.7.2.tgz#4f5029cf13239f31036e5b2e55292bcfbcc85c8f"
|
||||
|
Loading…
Reference in New Issue
Block a user