Skip to content

Commit

Permalink
proxy server setup for Participant manager web app
Browse files Browse the repository at this point in the history
  • Loading branch information
banufirdose-btc1 committed Sep 2, 2020
1 parent 860e837 commit af45f0e
Show file tree
Hide file tree
Showing 4 changed files with 434 additions and 2 deletions.
6 changes: 6 additions & 0 deletions UR-web-app-proxy-server/Server.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
var express = require("express");
var app = express();
let cors = require("cors");
app.get("/app1", function (req, res) {});
app.use(cors());
app.listen(3001);
15 changes: 15 additions & 0 deletions UR-web-app-proxy-server/app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
var express = require("express");
var app = express();
let cors = require("cors");
var httpProxy = require("http-proxy");
var apiProxy = httpProxy.createProxyServer();
var particpantManageServerUrl = "http://192.168.0.44:8003/",
authServerUrl = "http://35.193.185.224:8087";
app.use(cors());
app.all("/participant-manager-service/*", function (req, res) {
apiProxy.web(req, res, { target: particpantManageServerUrl });
});
app.all("/oauth-scim-service/*", function (req, res) {
apiProxy.web(req, res, { target: authServerUrl });
});
app.listen(3000);
Loading

0 comments on commit af45f0e

Please sign in to comment.