Skip to content

Commit 2029b24

Browse files
author
Uwe Schwaeke
committed
fix(horizon): stream image uploads in legacy mode
HORIZON_IMAGES_UPLOAD_MODE='direct' uploads from the browser straight to Glance:9292 via CORS. Lightstack's CORS allowlist is localhost-only, so through a tunnel the browser cannot reach Glance and the upload fails. 'legacy' has the Horizon server stream the image in-cluster, which works regardless of how the browser reaches Horizon. Apply to both the chart and the compose horizon-config copies (kept in sync by `make horizon-chart-sync`). Assisted-by: Claude:claude-opus-4-8 Signed-off-by: Uwe Schwaeke <uwe.schwaeke@sap.com>
1 parent b7d6f4d commit 2029b24

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎charts/horizon/files/local_settings‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ HORIZON_CONFIG = {
256256
}
257257

258258
# Disable features not supported by Lightstack stub mode
259-
HORIZON_IMAGES_UPLOAD_MODE = 'direct'
259+
HORIZON_IMAGES_UPLOAD_MODE = 'legacy'
260260

261261
# ==========================================
262262
# Policy Configuration

‎deployments/horizon-config/local_settings‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ HORIZON_CONFIG = {
256256
}
257257

258258
# Disable features not supported by Lightstack stub mode
259-
HORIZON_IMAGES_UPLOAD_MODE = 'direct'
259+
HORIZON_IMAGES_UPLOAD_MODE = 'legacy'
260260

261261
# ==========================================
262262
# Policy Configuration

0 commit comments

Comments
 (0)