Skip to content

Instantly share code, notes, and snippets.

@mrsimonemms
Created June 3, 2021 21:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mrsimonemms/461ec255a73d55c09b4d6e945be0df5d to your computer and use it in GitHub Desktop.
Save mrsimonemms/461ec255a73d55c09b4d6e945be0df5d to your computer and use it in GitHub Desktop.
Express Gateway Example
http:
port: 9999
admin:
port: 9876
host: 0.0.0.0
apiEndpoints:
# see: http://www.express-gateway.io/docs/configuration/gateway.config.yml/apiEndpoints
api:
paths:
- /api/v1/apiary
serviceEndpoints:
# see: http://www.express-gateway.io/docs/configuration/gateway.config.yml/serviceEndpoints
apiary:
urls:
- http://apiary:3000/crud
policies:
- proxy
pipelines:
# see: https://www.express-gateway.io/docs/configuration/gateway.config.yml/pipelines
api:
apiEndpoints:
- api
policies:
# Uncomment `key-auth:` when instructed to in the Getting Started guide.
# - key-auth:
- proxy:
- action:
serviceEndpoint: apiary
prependPath: true
ignorePath: false
stripPath: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment