@vladmandic/piproxy
Advanced tools
Comparing version 1.1.23 to 1.1.24
@@ -11,3 +11,3 @@ { | ||
}, | ||
"parserOptions": { "ecmaVersion": 2020 }, | ||
"parserOptions": { "ecmaVersion": "latest" }, | ||
"plugins": [ "html" ], | ||
@@ -14,0 +14,0 @@ "extends": [ |
# PiGallery Change Log | ||
### **HEAD -> master, origin/master, origin/HEAD** 2022/08/11 mandic00@live.com | ||
### **1.1.23** 2022/05/25 mandic00@live.com | ||
### **1.1.22** 2022/03/20 mandic00@live.com | ||
@@ -4,0 +8,0 @@ |
{ | ||
"name": "@vladmandic/piproxy", | ||
"version": "1.1.23", | ||
"version": "1.1.24", | ||
"description": "PiProxy: Reverse Proxy in NodeJS for HTTP/HTTPS/HTTP2 with SSL Certificate Management, Compression, Security Enforcement and Rate Limiting", | ||
@@ -38,15 +38,15 @@ "main": "server/piproxy.js", | ||
"@vladmandic/piacme": "^0.1.30", | ||
"@vladmandic/pilogger": "^0.4.4", | ||
"@vladmandic/pilogger": "^0.4.6", | ||
"connect": "^3.7.0", | ||
"helmet": "^5.0.2", | ||
"helmet": "^5.1.1", | ||
"maxmind": "^4.3.6", | ||
"nedb-promises": "^6.0.3", | ||
"simple-git": "^3.4.0", | ||
"superagent": "^7.1.1" | ||
"nedb-promises": "^6.1.0", | ||
"simple-git": "^3.12.0", | ||
"superagent": "^8.0.0" | ||
}, | ||
"devDependencies": { | ||
"eslint": "^8.11.0", | ||
"eslint": "^8.21.0", | ||
"eslint-config-airbnb-base": "^15.0.0", | ||
"eslint-plugin-html": "^6.2.0", | ||
"eslint-plugin-import": "^2.25.4", | ||
"eslint-plugin-html": "^7.1.0", | ||
"eslint-plugin-import": "^2.26.0", | ||
"eslint-plugin-json": "^3.1.0", | ||
@@ -53,0 +53,0 @@ "eslint-plugin-node": "^11.1.0", |
@@ -54,4 +54,6 @@ const fs = require('fs'); | ||
{ url: 'human.local', target: 'localhost', port: '10030' }, | ||
{ url: 'pimiami.ddns.net', target: 'localhost', port: '10060' }, | ||
{ url: 'pimiami.local', target: 'localhost', port: '10060' }, | ||
{ url: 'weather.local', target: 'localhost', port: '10060' }, | ||
{ url: 'stocks.local', target: 'localhost', port: '10040' }, | ||
{ url: 'pimiami.ddns.net', target: 'localhost', port: '10020' }, | ||
{ url: 'pi.hole', target: 'localhost', port: '10050' }, | ||
@@ -58,0 +60,0 @@ { default: true, target: 'localhost', port: '10020' }, |
@@ -22,3 +22,4 @@ const fs = require('fs'); | ||
const client = `${req.headers[':scheme'] || (req.socket.encrypted ? 'https' : 'http')}://${req.headers[':authority'] || req.headers.host}${req.url}`; | ||
log.error('Proxy error', client, err.statusCode, err.code, `${err.address}:${err.port}`); | ||
if (err.statusCode) log.error('Proxy error', client, err.statusCode, err.code, `${err.address}:${err.port}`); | ||
else log.error('Proxy error', client, err); | ||
res.setHeader('proxy-error', err); | ||
@@ -54,3 +55,3 @@ if (err.statusCode) res.writeHead(err.statusCode, res.headers); | ||
} | ||
if (!output.getHeader('content-type').startsWith('text/html')) output.removeHeader('content-security-policy'); | ||
if (!output.getHeader('content-type')?.startsWith('text/html')) output.removeHeader('content-security-policy'); | ||
// output.setHeader('x-powered-by', 'PiProxy'); | ||
@@ -67,2 +68,6 @@ output.setHeader('x-content-type-options', 'nosniff'); | ||
writeHeaders(input, output, acceptCompress); // copy headers from original response | ||
// override cors headers | ||
output.setHeader('Cross-Origin-Embedder-Policy', 'unsafe-none'); | ||
output.setHeader('Cross-Origin-Opener-Policy', 'unsafe-none'); | ||
output.setHeader('Cross-Origin-Resource-Policy', 'cross-origin'); | ||
// @ts-ignore | ||
@@ -69,0 +74,0 @@ const compress = zlib.createBrotliCompress({ params: { [zlib.constants.BROTLI_PARAM_QUALITY]: global.config.compress } }); // zlib.createGzip({ level: global.config.compress }); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
76025
1387
+ Addedsuperagent@8.1.2(transitive)
- Removedreadable-stream@3.6.2(transitive)
- Removedsafe-buffer@5.2.1(transitive)
- Removedstring_decoder@1.3.0(transitive)
- Removedsuperagent@7.1.6(transitive)
- Removedutil-deprecate@1.0.2(transitive)
Updated@vladmandic/pilogger@^0.4.6
Updatedhelmet@^5.1.1
Updatednedb-promises@^6.1.0
Updatedsimple-git@^3.12.0
Updatedsuperagent@^8.0.0