Questions tagged [express-gateway]

Express Gateway is a microservices API Gateway built on Express.js.

Express Gateway is a bunch of components which declaratively build around Express to meet the API Gateway use case. Express Gateway’s power is harnessed the rich ecosystem around Express middleware.

118 questions
1
vote
1 answer

express gateway log every request

I would like to log every single request that express gateway receives, but it seems I can't decide what to log . I tried to integrate morgan('immediate') From https://github.com/expressjs/morgan /* Create a sub app */ const subApp = express(); …
Dany Y
  • 6,833
  • 6
  • 46
  • 83
1
vote
0 answers

How to deploy express-gateway on azure using app service

Created express-gateway application and now I am trying to deploy on azure and for that created Azure App Service, once app service created than use of Github deployment process, deployed code on app service and now when I trying to access app…
1
vote
0 answers

How to add different rate limit condition for different user using express-gateway

I am trying to use the feature of rate limiting from express-gateway. But I am stuck on how to use different rate-limit value for different user.Also how to throttle only one end point. Here is my gateway.config.yml http: port: 9000 admin: port:…
Soham
  • 4,397
  • 11
  • 43
  • 71
1
vote
1 answer

How do I set up express gateway to securely connect with my services

I have currently configured express-gateway to communicate with a service on my backend exposed on a unique port on my machine and it's working fine. The gateway serves as a proxy to the services and currently does some security checks and jwt…
1
vote
1 answer

Express-gateway create new plugin / policy for express microservices application

I'm creating an express JS microservices architecture and I'm using express-gateway as an API gateway. I can expose my services and endpoints through the express gateway , one of the services (Books) has 2 roles (admin, user) with 2 different login…
DevGeek344
  • 129
  • 11
1
vote
1 answer

express-gateway on Heroku - {$PORT} binding error

I have deployed my express-gateway on Heroku, using env variables in this way in the gateway.config.yml file: http: port: ${PORT:-8080} host: ${HOST:-localhost} https: port: ${PORT:-8080} host: ${HOST:-localhost} apiEndpoints: …
DeLac
  • 1,068
  • 13
  • 43
1
vote
1 answer

Suggestion on Api Access with Express-Gateway, and User authentication with JWT

I have a server in Express that exposes some APIs to a web application. I am looking for a good way to manage both final users and 3rd parties authentication. Right now, when a user sign-up with email&password, the server generates a JWT associated…
DeLac
  • 1,068
  • 13
  • 43
1
vote
2 answers

How to combined multiple responses with single gateway endpoint using express gateway

I'm trying to create an endpoint at gateway that will call multiple service calls and combine them in one response. Is that possible with express-gateway? This is my gateway.config.yml. http: port: 8080 admin: port: 9876 host:…
Crystalix
  • 11
  • 1
1
vote
1 answer

Configuring express gateway to work with redis

I'm setting up an instance of the express gateway for routing requests to microservices. It works as expected, but I get the following errors when I try to include redis in my system config 0|apigateway-service | 2020-01-09T18:50:10.118Z…
user3010617
  • 137
  • 1
  • 12
1
vote
1 answer

Override express-gateway config

I'm deploying an express gateway to Amazon ECS container, I'm trying to figure out what is the best way to override the serviceEndpoint part if the gateway.config.yml since service URLs are obviously different. I need to change…
FMQ
  • 418
  • 3
  • 14
1
vote
1 answer

Express gateway always return Bad Gateway when I run with docker-compose

I tried to use Express Gateway with Docker as a Container for each microservice. So far it has been very good at local testing. There was a problem using the Docker by implementing EG. I don't know where the problem is. There is no complete…
1
vote
1 answer

Express gateway jwt return Unauthorized

I'm trying jwt on express-gateway. But from the configuration gateway.config.yml it is in accordance with the documentation. but, thats always return unautorized. my gateway.config.yml: http: port: 8080 apiEndpoints: crudAPI: host:…
1
vote
2 answers

Certificate Verification Error Using Express Gateway

I'm having an issue getting Express Gateway to connect to a backend service when using certificates generated with OpenSSL. Whenever the gateway tries to connect to the service I get this error in the log: project_edge_express_1 |…
Isaac Hildebrandt
  • 1,018
  • 5
  • 16
1
vote
1 answer

Express-Gateway - Basic Auth / Redis Performances Issue

We started using express-gateway as a simple proxy with some rewrite and jwt verification (jwt comes from Auth0). No problem there. For some endpoints I needed basic-auth so I needed to set up persistence. We use Kubernetes to run our apps and…
Yannholo
  • 179
  • 1
  • 2
  • 10
1
vote
2 answers

In express-gateway i want to log consumerid, I get the example ${req.ip} works fine but how do i reference the eg specific elements like consumerId?

How do I reference consumerId in order to log in express-gateway - are the eg- specific 'elements' documented anywhere? mytest: apiEndpoints: - test policies: - log: action: message: ${req.consumerId} ${req.ip} ${req.method}…