ADDED FORWARD PROXY CONFIGURATION AND CLIENT (#11708)

This commit is contained in:
Olsi Seferi
2022-03-07 17:58:13 +01:00
committed by GitHub
parent 912c0d3f77
commit 53afccfe3a
4 changed files with 371 additions and 0 deletions
+7
View File
@@ -0,0 +1,7 @@
server {
listen 8888;
location / {
resolver 8.8.8.8;
proxy_pass http://$http_host$uri$is_args$args;
}
}
File diff suppressed because it is too large Load Diff
+14
View File
@@ -0,0 +1,14 @@
{
"name": "nginx-forward-proxy",
"version": "1.0.0",
"description": "Simple Client for Connecting to a Forward Proxy",
"main": "proxytest.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "Olsi Seferi",
"license": "ISC",
"dependencies": {
"request": "^2.88.2"
}
}
+11
View File
@@ -0,0 +1,11 @@
var request = require('request');
request({
'url':'http://www.google.com/',
'method': "GET",
'proxy':'http://192.168.100.40:8888'
},function (error, response, body) {
if (!error && response.statusCode == 200) {
console.log(body);
}
})