Skip to content

feat: configurable root_path #50

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

Merged
merged 17 commits into from
Apr 14, 2025
Merged

feat: configurable root_path #50

merged 17 commits into from
Apr 14, 2025

Conversation

alukach
Copy link
Member

@alukach alukach commented Apr 13, 2025

Enable the proxy to be served from a configurable non-root path (e.g. /stac). This is entirely independent of the path from which the upstream API is served.

This involves:

  • Processing the href of any link in the response matching the upstream host, removing the upstream_url path and adding the root_path if it exists
  • Removing the root_path from the request before it is sent to the upstream server
  • Adding a servers field in OpenAPI spec with root_path if it exists

@alukach alukach changed the title Configurable root_path feat: configurable root_path Apr 13, 2025
@alukach alukach force-pushed the feature/root-path branch from 5058945 to 3ab2d66 Compare April 13, 2025 16:15
@alukach alukach merged commit 34ba6b7 into main Apr 14, 2025
2 checks passed
@alukach alukach deleted the feature/root-path branch April 14, 2025 03:28
@alukach alukach mentioned this pull request Apr 14, 2025
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

Successfully merging this pull request may close these issues.

1 participant