From 430457dcd913902278d4b404bf37e931712fc73f Mon Sep 17 00:00:00 2001 From: Anton Afanasyeu Date: Sun, 5 Jul 2026 18:56:40 +0200 Subject: [PATCH] fix(cluster0): redirect BE root / to hub over HTTPS FE proxies https://apps.f0xx.org/ to cast01 GET /; without this block the Alpine default_server served the nginx welcome page. Absolute https redirect avoids http:// in Location when upstream is plain :80. Co-authored-by: Cursor --- sim/cluster0/nginx/apps-port80.conf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sim/cluster0/nginx/apps-port80.conf b/sim/cluster0/nginx/apps-port80.conf index 524cb8e..494b026 100644 --- a/sim/cluster0/nginx/apps-port80.conf +++ b/sim/cluster0/nginx/apps-port80.conf @@ -11,6 +11,11 @@ server { listen 80 default_server; listen [::]:80 default_server; + # FE proxies https://apps.f0xx.org/ here as GET / — hub lives under /app/androidcast_project/ + location = / { + return 301 https://$http_host/app/androidcast_project/; + } + # OTA v0 static tree — devices fetch https://apps.f0xx.org/v0/ota/channel/stable.json location ^~ /v0/ota/ { alias /var/www/localhost/htdocs/apps/app/androidcast_project/ota-artifacts/v0/ota/;