Closed slesaad closed 8 months ago
Previously done only for STAC API, we realised raster API also requires the host header overwriting (because otherwise the tilejson urls sent back from /mosaic/register has the API gateway urls.
/mosaic/register
Extra work was needed to use the same env var for both the stac and raster apis, because of ENV_PREFIX config. Workaround taken from https://github.com/pydantic/pydantic/issues/1727#issuecomment-658881926
ENV_PREFIX
Previously done only for STAC API, we realised raster API also requires the host header overwriting (because otherwise the tilejson urls sent back from
/mosaic/register
has the API gateway urls.Extra work was needed to use the same env var for both the stac and raster apis, because of
ENV_PREFIX
config. Workaround taken from https://github.com/pydantic/pydantic/issues/1727#issuecomment-658881926