diff --git a/reverse_proxy/server.js b/reverse_proxy/server.js index 115187f04..f689c8366 100644 --- a/reverse_proxy/server.js +++ b/reverse_proxy/server.js @@ -28,13 +28,17 @@ var redwire = new RedWire({ /** * Cerberus is a couple services behind a router so we can simulate that locally */ +// redirect /secret to Hashicoorp Vault +redwire.http('http://localhost:9000/v1/secret', '127.0.0.1:8200/v1/secret'); +redwire.http('http://127.0.0.1:9000/v1/secret', '127.0.0.1:8200/v1/secret'); // redirect dashboard to the Cerberus Management Dashboard redwire.http('http://localhost:9000/dashboard', '127.0.0.1:8000'); +redwire.http('http://127.0.0.1:9000/dashboard', '127.0.0.1:8000'); // redirect rule for Cerberus Management Service redwire.http('http://localhost:9000/v1', '127.0.0.1:8080/v1'); +redwire.http('http://127.0.0.1:9000/v1', '127.0.0.1:8080/v1'); redwire.http('http://localhost:9000/v2', '127.0.0.1:8080/v2'); -// redirect /secret to Hashicoorp Vault -redwire.http('http://localhost:9000/v1/secret', '127.0.0.1:8200/v1/secret'); +redwire.http('http://127.0.0.1:9000/v2', '127.0.0.1:8080/v2'); var express = require('express') var app = express()