ixg_platform/apps
ixgadmin d5bc06802e Serve map tiles from our own origin
The origin-zone map drew its background from a public tile server, which made it
the only part of the admin page that depended on a third-party domain — and the
part that breaks. Where a viewer's network, proxy or browser filter refuses
tile.openstreetmap.org (the refusal arrives as a 403) the map never draws, while
the page, the Leaflet bundle and the polygon data are all same-origin and fine.

Fetch the tiles server-side and serve them from /tiles/{z}/{x}/{y}.png: cached
on disk, so a page opened repeatedly does not re-fetch, and gated on being
signed in, so the route is not an open tile relay. The upstream stays
configurable via LEAFLET_TILE_URL, and LEAFLET_TILE_PROXY_ENABLED=False puts the
browser back on direct fetches.

When a tile still cannot be fetched, answer an empty tile rather than an error
page and say so under the map, instead of leaving a viewer with a blank grid and
no explanation.
2026-09-17 13:00:59 +00:00
..
ai Initial commit: IXG Platform 2026-07-29 16:48:48 +00:00
batches Initial commit: IXG Platform 2026-07-29 16:48:48 +00:00
buyer Serve document and certificate files through a permission-checked download 2026-09-17 12:44:52 +00:00
capa Initial commit: IXG Platform 2026-07-29 16:48:48 +00:00
compliance Serve map tiles from our own origin 2026-09-17 13:00:59 +00:00
core Serve map tiles from our own origin 2026-09-17 13:00:59 +00:00
documents Serve document and certificate files through a permission-checked download 2026-09-17 12:44:52 +00:00
esg Initial commit: IXG Platform 2026-07-29 16:48:48 +00:00
guides Help centre: portal-scoped guide audiences, and links that resolve 2026-09-16 16:39:07 +00:00
notifications Initial commit: IXG Platform 2026-07-29 16:48:48 +00:00
ops Serve document and certificate files through a permission-checked download 2026-09-17 12:44:52 +00:00
qc P99C: compliance automation - CoA auto-generation and EUDR due diligence 2026-08-05 13:58:39 +00:00
shipments Initial commit: IXG Platform 2026-07-29 16:48:48 +00:00
subscriptions Initial commit: IXG Platform 2026-07-29 16:48:48 +00:00
users Initial commit: IXG Platform 2026-07-29 16:48:48 +00:00
__init__.py P99C: compliance automation - CoA auto-generation and EUDR due diligence 2026-08-05 13:58:39 +00:00