Skip to content

[Bug]: Adjacent servers using internal Docker container name instead of server name in URLs #753

@jtroberts

Description

@jtroberts

Checked for duplicates

Yes - I've already checked

Describe the bug

I'm running MMGIS in Docker with stac-fastapi-pgstac. I'm having trouble with stac-fastapi respecting the server name

If I hit the STAC catalog with just the IP address, the stac collection uses that IP as the server name in its URLs.

If I use the load balancer address, it uses "http://stac-fastapi/" instead of the server name.

What did you expect?

I expect URLs in STAC results to match the server and path used to make the request.

Reproducible steps

Environment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions