Skip to content

Instantly share code, notes, and snippets.

@dominykas
Created July 17, 2015 13:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dominykas/2433d5c9e9fb941c52d5 to your computer and use it in GitHub Desktop.
Save dominykas/2433d5c9e9fb941c52d5 to your computer and use it in GitHub Desktop.
hapijs/h2o2 issue #13
var Hapi = require("hapi");
var server = new Hapi.Server();
server.connection({port:23232});
server.route({
method: "GET",
path: "/",
handler: {
proxy: {
redirects: 10,
mapUri: function (req, cb) {
cb(null, "http://drive.google.com/uc?id=0B56OaK7BeVZ7ZU1pZkQtQ2R4dU0");
}
}
}
});
server.start();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment