Skip to content

harunergul/proxy-server

Repository files navigation

basic-proxy-server

Basic proxy server sample based on NodeJS. The libraries that i used in the application are http-proxy,winston for logging,winston-daily-rotate-file for daily logging errors. You need to provide target address to proxy the request.

let server = http.createServer(function(request, response) {
      console.log("Request arrived");
      proxy.web(request, response, { target: "http://192.168.1.37:9005" });
});

About

Basic proxy server based on NodeJS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published