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:
@@ -1,12 +1,11 @@
|
||||
# Project hub (`/app/androidcast_project/`)
|
||||
|
||||
Two static files. Copy from git to the VM:
|
||||
# Project hub
|
||||
|
||||
```bash
|
||||
cp examples/app_hub/index.html /var/www/localhost/htdocs/apps/app/androidcast_project/
|
||||
cp examples/app_hub/hub.css /var/www/localhost/htdocs/apps/app/androidcast_project/
|
||||
```
|
||||
|
||||
One-time: stop nginx redirecting `/app/androidcast_project/` to crashes — use the two `location =` blocks in `examples/crash_reporter/backend/nginx.apps.conf.fragment`, then `nginx -t && reload`.
|
||||
Nginx (`nginx.apps.conf.fragment`): serve that directory — **not** `alias …/index.html` (that causes 502).
|
||||
|
||||
That's it.
|
||||
```bash
|
||||
nginx -t && rc-service nginx reload
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user