ADDED FORWARD PROXY CONFIGURATION AND CLIENT (#11708)
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
server {
|
||||
listen 8888;
|
||||
location / {
|
||||
resolver 8.8.8.8;
|
||||
proxy_pass http://$http_host$uri$is_args$args;
|
||||
}
|
||||
}
|
||||
Generated
+339
File diff suppressed because it is too large
Load Diff
@@ -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"
|
||||
}
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user