Skip to content

Dynamically built links for stac-fast-api-pgstac behind proxy are wrong #781

Discussion options

You must be logged in to vote

@brunifrancesco it would help if you shared which backend you're using and also the version of the modules

looking at stac-fastapi only the links are dynamically created in

def root(self) -> Dict[str, Any]:
"""Return the catalog root."""
return dict(rel=Relations.root, type=MimeTypes.json, href=self.base_url)

and using base_url from

def get_base_url(request: Request) -> str:
"""Get base URL with respect of APIRouter prefix."""
app = request.app
if not app.state.ro…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@brunifrancesco
Comment options

Answer selected by brunifrancesco
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants