1
0
mirror of git://f0xx.org/ac/ac-deploy synced 2026-07-29 02:37:39 +03:00

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 <cursoragent@cursor.com>
This commit is contained in:
Anton Afanasyeu
2026-07-05 18:56:40 +02:00
parent 56a6cd785d
commit 430457dcd9

View File

@@ -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/;