Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Aug 12 23:56
    dependabot[bot] labeled #1033
  • Aug 12 23:56
    dependabot[bot] opened #1033
  • Aug 12 23:56

    dependabot[bot] on npm_and_yarn

    Bump path-parse from 1.0.5 to 1… (compare)

  • Aug 04 17:12
    jayndu opened #1032
  • Jul 29 08:08
    codezilla91 commented #1011
  • Jul 14 18:10
    krishna-gennext opened #1031
  • Jul 06 14:49
    pprathameshmore edited #1030
  • Jul 06 14:39
    pprathameshmore opened #1030
  • Jun 29 15:18
    XVincentX closed #1029
  • Jun 29 15:18
    XVincentX commented #1029
  • Jun 29 07:58
    woderchen opened #1029
  • Jun 15 12:33
    isatria edited #1028
  • Jun 15 12:21
    isatria opened #1028
  • Jun 11 22:42
    Shamith005 commented #873
  • Jun 11 06:59
    izakfhy commented #873
  • Jun 07 02:54
    philipsjp26 commented #696
  • Jun 07 00:35
    philipsjp26 commented #1004
  • Jun 06 16:05
    dependabot[bot] labeled #1027
  • Jun 06 16:05

    dependabot[bot] on npm_and_yarn

    Bump ws from 6.2.1 to 6.2.2 Bu… (compare)

  • Jun 06 16:05
    dependabot[bot] opened #1027
sohambarc
@sohambarc

http:
port: 9000
admin:
port: 9876
hostname: localhost
apiEndpoints:
cust:
host: localhost
paths:

  - '/delete'
  - '/update'

serviceEndpoints:
custsurv:
url: 'http://localhost:3000'
policies:

  • basic-auth
  • cors
  • expression
  • key-auth
  • log
  • oauth2
  • proxy
  • rate-limit
    pipelines:
    default:
    apiEndpoints:
    • cust
      policies:
    • rate-limit:
      • action:

        Limit to 1 per minute

        max: 1
        windowMs: 100000
    • proxy:
      • action:
        serviceEndpoint: custsurv
        changeOrigin: true
Like I want to use rate-limit for /delete path
ImenHassine
@ImenHassine
image.png
ImenHassine
@ImenHassine
Helloo everybody , whyyy the body is sent always empty
ImenHassine
@ImenHassine
and how can i generate API documentation (swagger) from express gateway ?
also how to use scopes in oauth2 ? key-auth with scopes works but oauth2 it does not work
Doqnach
@Doqnach
hey all. is Express Gateway still under (active) development? Or is the last version really from September 2019?
omprasadnayak
@omprasadnayak
how to implement express gateway with kubernetes ?
aOmmy Indy
@aommyindy

hi, I have questions about policies: response-transformer

pipelines:
  pipeline1:
    apiEndpoints:
      - sampleEndpoint
    policies:
      - response-transformer:
        - action:
            body:
              add:
                hello: "'world'"
            headers:
              add:
                r-test: "'header value'"
      - proxy:
          - action:
              serviceEndpoint: backend

we can not proxy action serviceEndpoint: backend or not ?

I want to mock response-transformer some json
for loadtest and not loadtest 3rd party
Doqnach
@Doqnach
@XVincentX hi, is this product still active? or deprecated?
ImenHassine
@ImenHassine
How to combined multiple responses with single gateway endpoint using express gateway
And express Gateway does not really support such scenario unfortunately. So i to have to write my own plugin
and when i did that the route in gateway.config.yml
ImenHassine
@ImenHassine
does not work very well
William Chance
@wchance
I would like to sign all proxied transactions is there a way to do it from express-gateway
found some plug-in called hmac-request but not sure if this is recommended
Sameh Fakoua
@fakoua
Hello everyone
I have the following configuration:
apiEndpoints:
  api:
    host: localhost
    paths: "/ip"
  todos:
    host: localhost
    paths: "/todos"
serviceEndpoints:
  httpbin:
    url: "https://httpbin.org"
  todosService:
    url: "https://jsonplaceholder.cypress.io"
pipelines:
  default:
    apiEndpoints:
      - api
    policies:
      - proxy:
          - action:
              serviceEndpoint: httpbin
              changeOrigin: true
  todosPipeline:
    apiEndpoints:
      - todos
    policies:
      - proxy:
          - action:
              serviceEndpoint: todosService
              changeOrigin: true
now if i want to request httpbin: http://localhost:8080/ip
and if I want to request jsonplaceholder: http://localhost:8080/todos
how can i prefix to each service, for example for jsonplaceholder: http://localhost:8080/PREFIX/todos which will fetch the original domain/todos
TamKings
@lord-zeus

try this

apiEndpoints:
  api:
    host: localhost
    paths: “/ip/*"
  todos:
    host: localhost
    paths: “/todos/*"

add “/*” to the api endpoints

Sameh Fakoua
@fakoua
Many thanks, i found the solution with proxies in the action as follow:
       -action:
            ....
             prependPath: true
              ignorePath: false
              stripPath: true
TamKings
@lord-zeus

Many thanks, i found the solution with proxies in the action as follow:

Ok Cool

Miruako
@Miruako
Guys, I've got an error [EG-Policy] socket hang up randomly when I send a request, anybody know what it means exactly???
Sameh Fakoua
@fakoua
Happy New Year Express-Gatewaysters!
Can I enable CORS on the admin interface port 9876 ?
ThaDaVos
@ThaDaVos
Curiosity question: Is it possible to have multiple configuration files? So for example one per service/pipeline? Because mine is getting huge...
neerajnitw3
@neerajnitw3
Hi, want to deploy express-gateway app on azure but I am getting "iisnode was unable to establish named pipe connection to the node.exe process"
Douglas Lira
@douglaslira
How to customize message "Unauthorized" with express-gateway?
equintanar-openpay
@equintanar-openpay
hi
i want deploy express-gateway app on aws lambda, any example or documentation? thanks
Douglas Lira
@douglaslira
Hi guys
how to intercept a "Unauthorize" with JWT or how to check a token expired?
Dishant Rathi
@dishantr16
why can't i fetch the details
There is showing typeError failed to fetch
does anyone can help??
Douglas Lira
@douglaslira
I think this project was abandoned. Because I don't see anyone answering... just questions.
Doqnach
@Doqnach
last version was Sep 2019... so yeah kinda
Douglas Lira
@douglaslira
Sad because I met recently and liked it very much had a great potential
Doqnach
@Doqnach
We had the plan to use this for our API Gateway at first... until we found out the total lack of support. That does not weigh up to the fact that is actually has all the requirements we are looking for, if no updates are coming at all.
Douglas Lira
@douglaslira
I have also seriously thought about using this project, but I have been looking for more detailed help for some time now and can't find it anywhere
Doqnach
@Doqnach
we decided to try out Tyk. amazing product but having some issues getting it to run like expected on minikube.
Douglas Lira
@douglaslira
I decided to create something from scratch. I think it will be the best way
For example, you're the first person I've talked to here... and I finally realized that you have the same difficulties
Doqnach
@Doqnach
yup