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

How to override server's base URL #33

Open
GorgiAstro opened this issue Oct 28, 2024 · 0 comments
Open

How to override server's base URL #33

GorgiAstro opened this issue Oct 28, 2024 · 0 comments

Comments

@GorgiAstro
Copy link

GorgiAstro commented Oct 28, 2024

Is your feature request related to a problem? Please describe.
I would like the Items in my MongoDB to keep relative URIs to their assets' COGs in case of server migration for instance.

In the current implementation, in case of a relative href for an Asset, the STAC-fastAPI server's base URL is prepended to it. However, I would like my server serving the COGs to be hosted at a different address (probably same server but different port).

Describe the solution you'd like
Instead, is it possible to override the STAC-fastAPI server's base URL? I didn't find in the code where the base URL is defined, I saw base_url = get_base_url(request) but I didn't really understand that part.

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