Providers
Google Drive
Connect TorrenCloud to your Google Drive using OAuth 2.0.
Prerequisites
A Google Cloud project with the Google Drive API enabled.
Step 1: Create OAuth Credentials
- Go to Google Cloud Console → APIs & Services → Credentials
- Click Create Credentials → OAuth client ID
- Application type: Web application
- Add Authorized redirect URI:
- Local:
http://localhost:47100/proxy/api/storage/gdrive/callback - Remote server: the installer prints the exact URI — e.g.
http://192-168-1-100.sslip.io:47100/proxy/api/storage/gdrive/callback
- Local:
- Copy the Client ID and Client Secret
Step 2: Connect Your Account
- In TorrenCloud, go to Storage → Google Drive
- Enter the Client ID and Client Secret from the previous step
- Click Connect Google Account
- Complete the OAuth flow in your browser
- Select which Drive folder to sync to
Google credentials are saved securely within TorrenCloud during configuration — no environment variables needed.
Step 3: Configure Auto-Sync
After connecting, set up sync rules:
- Target folder: where files land in your Drive
- Auto-sync: toggle to automatically sync completed downloads
Data Privacy
- OAuth tokens are stored encrypted in the PostgreSQL database inside your container
- Files are uploaded directly from your server to Google Drive — no intermediary
- To revoke access: visit myaccount.google.com/permissions and remove TorrenCloud
Troubleshooting
"Redirect URI mismatch" — The redirect URI must exactly match what TorrenCloud shows in the storage settings form. It follows the pattern http://<your-host>:47100/proxy/api/storage/gdrive/callback. If you installed via the one-command installer, the exact URI was printed at the end of installation.
"Access denied" — Make sure the Google Drive API is enabled in your Cloud Console project.