US-GHG-Center / ghgc-backend

Backend services for Green House Gas Center
Other
0 stars 1 forks source link

Overwrite host header for both raster and stac apis #46

Closed slesaad closed 8 months ago

slesaad commented 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.

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