mirror of
git://f0xx.org/ac/ac-deploy
synced 2026-07-29 05:00:35 +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:
@@ -11,6 +11,11 @@ server {
|
|||||||
listen 80 default_server;
|
listen 80 default_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
|
# OTA v0 static tree — devices fetch https://apps.f0xx.org/v0/ota/channel/stable.json
|
||||||
location ^~ /v0/ota/ {
|
location ^~ /v0/ota/ {
|
||||||
alias /var/www/localhost/htdocs/apps/app/androidcast_project/ota-artifacts/v0/ota/;
|
alias /var/www/localhost/htdocs/apps/app/androidcast_project/ota-artifacts/v0/ota/;
|
||||||
|
|||||||
Reference in New Issue
Block a user