8000 feat: upstream endpoint match plugin · Issue #61 · the-guild-org/conductor · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Mar 18, 2025. It is now read-only.

feat: upstream endpoint match plugin #61

Closed
YassinEldeeb opened this issue Jul 31, 2023 · 0 comments · Fixed by #182
Closed

feat: upstream endpoint match plugin #61

YassinEldeeb opened this issue Jul 31, 2023 · 0 comments · Fixed by #182
Labels
enhancement New feature or request

Comments

@YassinEldeeb
Copy link
Contributor
YassinEldeeb commented Jul 31, 2023

This plugin can be used to achieve regional load balancing, @dotansimha came up with how the usage might look like:

server:
  port: 9000

sources:
  - id: my-api
    type: graphql
    config:
      endpoint: https://us.myapi.com/ # this is the default

endpoints:
  - path: /graphql
    from: my-api
    plugins:
      - type: upstream-endpoint-match
        config:
          value: {{ headers["CF-Geo-Location"] }} 
          set:
            - match: US-America
              value: https://us.myapi.com/ 
            - match: EU
              value: https://eu.myapi.com/
@YassinEldeeb YassinEldeeb added the enhancement New feature or request label Jul 31, 2023
@theguild-bot theguild-bot mentioned this issue Aug 20, 2023
63 tasks
This was referenced May 7, 2024
@theguild-bot theguild-bot mentioned this issue May 23, 2024
63 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant
0