Start the rclone rc API in bootstrap and show its version in About #92
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "claude/rclone-rc-in-bootstrap"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
docker/bootstrap.mjsnow starts rclone's remote control (rc) API on127.0.0.1:5572next to the WebDAV server. The password is 32 random bytes, new on every container start.RCLONE_RC_*for rclone,RCLONE_RC_URL/USER/PASSfor the app). It never appears in a command line, file or log, and the rc server is loopback only.RCLONE_*,PATH,HOME,TMPDIRandTZ, so it no longer inherits the app's OIDC and session secrets.@filehub/rclone(core/version). The root loader starts the request without awaiting it and passes the promise down; About reads it withReact.use()inside aSuspenseboundary, so pages don't wait on rclone. It shows "Unavailable" if rclone can't be reached. The server function returnsnullfor signed-out visitors.@filehub/rcloneis added as an app dependency, and to the Dockerfile's deps and build stages.Notes
RCLONE_RC_*are optional inenv.ts. Without--onlythey are set by bootstrap; inpnpm devthey are unset, so About shows "Unavailable" there (dev:webdavdoesn't start rc).admin:cat123, loopback only).Test plan
pnpm typecheck,biome,knip