1
0
mirror of git://f0xx.org/android_cast synced 2026-07-29 05:17:39 +03:00

Fix project hub 502: directory alias and single index.html.

Alias-to-file broke nginx static serving; inline hub CSS and relative links. One file to copy.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Anton Afanasyeu
2026-05-25 07:41:53 +02:00
parent 92582c31fb
commit 272c6e5947
5 changed files with 71 additions and 179 deletions

View File

@@ -9,13 +9,10 @@
return 301 /app/androidcast_project/;
}
# Static project hub (examples/app_hub — index.html + hub.css on disk)
# Static hub: one index.html in project dir (directory alias — not alias-to-file)
location = /app/androidcast_project/ {
alias /var/www/localhost/htdocs/apps/app/androidcast_project/index.html;
}
location = /app/androidcast_project/hub.css {
alias /var/www/localhost/htdocs/apps/app/androidcast_project/hub.css;
alias /var/www/localhost/htdocs/apps/app/androidcast_project/;
index index.html;
}
location ^~ /app/androidcast_project/crashes/assets/ {

View File

@@ -27,11 +27,8 @@ server {
}
location = /app/androidcast_project/ {
alias /var/www/localhost/htdocs/apps/app/androidcast_project/index.html;
}
location = /app/androidcast_project/hub.css {
alias /var/www/localhost/htdocs/apps/app/androidcast_project/hub.css;
alias /var/www/localhost/htdocs/apps/app/androidcast_project/;
index index.html;
}
location ^~ /app/androidcast_project/crashes/assets/ {