Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support to add prefix and extra header to address field #157

Open
DhananjayPurohit opened this issue Nov 26, 2024 · 0 comments
Open

Support to add prefix and extra header to address field #157

DhananjayPurohit opened this issue Nov 26, 2024 · 0 comments

Comments

@DhananjayPurohit
Copy link

There should be a parameter to include a prefix in the address field. Currently, adding a complete URL to the address results in a 502 Bad Gateway error. Additionally, a feature to include extra headers in the configuration should be supported.

The service configuration file (aperture.yaml) should look like this:

- name: "service1"
  hostregexp: "^localhost:8081$"
  pathregexp: '^/api$'
  address: "0.0.0.0:443"
  protocol: https
  header:
    Authorization: "Bearer key"
  price: 10
  rewrite:
    prefix: "/path/to/api"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant