Skip to content

Instantly share code, notes, and snippets.

@fivesheep
Created February 10, 2022 19:59
Show Gist options
  • Save fivesheep/2b5856b4036fa3b2c5ad72dcde456241 to your computer and use it in GitHub Desktop.
Save fivesheep/2b5856b4036fa3b2c5ad72dcde456241 to your computer and use it in GitHub Desktop.
rgate-requirement.md

Rgate is a simple API Gateway which routes HTTP traffic to configured upstreams.

For example, given the below config:

rgate:
  routes:
    - path_prefix: /public-api/posts
      backend: https://gorest.co.in
  default_response:
    body: "This is not reachable"
    status_code: 403

Any api call makes to this service http://localhost:8080/public-api/posts will be routed to https://gorest.co.in/public-api/posts, for all other API calls, the default_response will be returned.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment