mirror of
https://github.com/R0m1k3/xtremflow.git
synced 2026-10-20 13:38:05 +02:00
feat: Implement core server application with API routing, streaming, and static content serving.
This commit is contained in:
1 parent
1dd77bd87a
commit
755367018a
3 files changed
+55
-52
No files matched your search
@@ -1,21 +1,24 @@
|
||||
# Fix Docker Database & Proxy Issues
|
||||
# Fix Docker & Proxy Issues
|
||||
|
||||
## Context
|
||||
## Completed
|
||||
|
||||
1. SQLite database read-only error on login (permissions)
|
||||
2. Xtream proxy 401 Unauthorized errors
|
||||
- [x] Database permissions (`entrypoint.sh` + `Dockerfile`)
|
||||
- [x] Proxy 401 errors (removed broken mount in `server.dart`)
|
||||
- [x] Proxy chunked encoding error (buffered response in `proxy_handler.dart`)
|
||||
|
||||
## Master Plan
|
||||
## Changes
|
||||
|
||||
- [x] Analyze database readonly error → volume permissions mismatch
|
||||
- [x] Create `entrypoint.sh` with gosu for privilege drop
|
||||
- [x] Update `Dockerfile` to use entrypoint
|
||||
- [x] Analyze proxy 401 errors → broken mount in apiRouter
|
||||
- [x] Remove duplicate `/api/xtream` mount from `server.dart`
|
||||
- [ ] Rebuild and deploy
|
||||
| File | Change |
|
||||
|------|--------|
|
||||
| `entrypoint.sh` | NEW - fixes /app/data permissions, runs as xtremuser via gosu |
|
||||
| `Dockerfile` | Added gosu, ENTRYPOINT |
|
||||
| `bin/server.dart` | Removed broken /api/xtream mount, added logging |
|
||||
| `bin/api/proxy_handler.dart` | Changed from streaming to buffered response |
|
||||
|
||||
## Changes Made
|
||||
## Deploy
|
||||
|
||||
- `entrypoint.sh`: Fixes /app/data permissions at startup, then runs as xtremuser
|
||||
- `Dockerfile`: Added gosu, ENTRYPOINT, removed USER directive
|
||||
- `server.dart`: Removed broken /api/xtream mount that was blocking proxy
|
||||
```bash
|
||||
git add .
|
||||
git commit -m "fix: database permissions + proxy errors"
|
||||
git push && docker compose up --build -d
|
||||
```
|
||||
Reference in new issue
Block a user