Skip to content
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.

Commit

Permalink
fix, up reverse proxy setting for local dev
Browse files Browse the repository at this point in the history
  • Loading branch information
fieldju committed Feb 26, 2017
1 parent ee4e19a commit 11963c4
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions reverse_proxy/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 11963c4

Please sign in to comment.