package components import ( "context" "fmt" ) // Storage Providers Import Page // User uploads a config, previews/edit remotes, selects which to import // On submit, POSTs selected remotes to /storage-providers/import/confirm // Main import page template templ StorageProvidersImport(ctx context.Context, preview RcloneImportPreview) {
Upload your rclone configuration file to import storage providers. You'll be able to preview and select which remotes to import, and add any missing credentials.
rclone.conf file (usually found in ~/.config/rclone/ or %USERPROFILE%\.config\rclone\)host: Server hostname or IPuser: Usernamepass: Password (if not using key)port: SSH port (default: 22)key_file: Path to private keyaccess_key_id: Access keysecret_access_key: Secret keyregion: Region nameendpoint: Custom endpoint URLbucket: Bucket namehost: Server hostname or IPuser: Usernamepass: Passwordport: FTP port (default: 21)tls: Use FTPS (true/false)client_id: OAuth client IDclient_secret: OAuth client secretrefresh_token: OAuth refresh tokenteam_drive: Team Drive ID (optional)client_id: OAuth client IDclient_secret: OAuth client secretrefresh_token: OAuth refresh tokendrive_id: Drive ID (optional)url: WebDAV URLuser: Usernamepass: Passwordvendor: nextcloud/owncloud/etcSelect which remotes to import and edit their details if needed.