Skip to content

Commit

Permalink
#85 #81 ip's changed
Browse files Browse the repository at this point in the history
  • Loading branch information
asimazmi committed Apr 27, 2020
1 parent 87634e0 commit 03225ae
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Frontend/.env
Original file line number Diff line number Diff line change
@@ -1 +1 @@
REACT_APP_API_URL=http://149.165.169.178:32178
REACT_APP_API_URL=http://129.114.104.27:32178
2 changes: 1 addition & 1 deletion Usermanagement_API_Gateway/Backend/.env
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
MONGO_URI=mongodb+srv://suyashporedi:suyash1995@cluster0-eo5mq.mongodb.net/test?retryWrites=true&w=majority
PORT=32178
JWT_SECRET=KMLDJFW90988F8392JFFAFDGKJ
CLIENT_URL=http://149.165.169.178:32177
CLIENT_URL=http://129.114.104.27:32177
2 changes: 1 addition & 1 deletion Usermanagement_API_Gateway/Backend/routes/apiGateway.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const { sendMsg }=require('../controllers/queue');
router.get('/sessionData/:userid',function(req, res){
var userid = req.params.userid;
console.log(userid);
res.redirect(307,'http://149.165.169.178:32179/rest/db/'+userid);
res.redirect(307,'http://129.114.104.27:32179/rest/db/'+userid);
});

module.exports = router;
Expand Down
14 changes: 14 additions & 0 deletions istiofiles/http-gateway.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apiVersion: networking.istio.io/v1alpha3
kind: Gateway
metadata:
name: http-gateway
spec:
selector:
istio: ingressgateway
servers:
- port:
number: 80
name: http
protocol: HTTP
hosts:
- "*"
24 changes: 24 additions & 0 deletions istiofiles/virtualservice-external.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: sa-external-services
spec:
hosts:
- "*"
gateways:
- http-gateway # 1
http:
- match:
- uri:
exact: /
- uri:
exact: /callback
- uri:
prefix: /static
- uri:
regex: '^.*\.(ico|png|jpg)$'
route:
- destination:
host: ui
port:
number: 80

0 comments on commit 03225ae

Please sign in to comment.