The idea
Telegram already stores large files reliably, but it's a chat app, not a drive. TCloud puts a real drive on top of it: folders, sharing, quotas and encryption, so the storage channel only ever holds ciphertext.
What I built
- Encrypted before it leavesEvery file gets its own AES-256 key before upload and is SHA-256 verified on download.
- A real driveFolders, inline previews, per-user storage quotas and quota warnings.
- SharingPublic share links for single files and shared folders.
- Accounts and adminEmail verification, password reset and a full admin panel.
- REST APIAPI key authentication with public docs, so other tools can store and fetch files.
The hard parts
- Telegram as a storage backendFiles live in a private channel, and a second channel receives automated hourly backups, so one channel is never the only copy.
- Sharing without leakingShare links use long random tokens, and a folder link only serves files inside that folder. Password-reset tokens are stored hashed, work once and expire in an hour.
- Knowing when it breaksA health endpoint reports the Telegram connection, uptime and storage. Uptime Kuma polls it and alerts me on Telegram if anything drops.
- A locked-down serverThe app listens only on localhost behind Nginx with rate limiting and CSP headers, runs under systemd, and refuses to start without its secrets.