|  | 
|  | 1 | +--- | 
|  | 2 | +# This is the title of the article | 
|  | 3 | +title: teldrive | 
|  | 4 | +# This is the icon of the page | 
|  | 5 | +icon: iconfont icon-state | 
|  | 6 | +# This control sidebar order | 
|  | 7 | +order: 214 | 
|  | 8 | +# A page can have multiple categories | 
|  | 9 | +category: | 
|  | 10 | +  - Guide | 
|  | 11 | +# A page can have multiple tags | 
|  | 12 | +tag: | 
|  | 13 | +  - Storage | 
|  | 14 | +  - Guide | 
|  | 15 | +  - "302" | 
|  | 16 | +# this page is sticky in article list | 
|  | 17 | +sticky: true | 
|  | 18 | +# this page will appear in starred articles | 
|  | 19 | +star: true | 
|  | 20 | +--- | 
|  | 21 | + | 
|  | 22 | +# Teldrive | 
|  | 23 | + | 
|  | 24 | +Teldrive is a telegram based cloud storage, which is maintained by telegram official team. | 
|  | 25 | + | 
|  | 26 | +**features:** | 
|  | 27 | +- No storage limit | 
|  | 28 | +- no file size limit.  | 
|  | 29 | +- Bandwidth limited applied if your account is not subscribe Telegram Premium. Speed depends on the distance from teldrive service to your account datacenter location(DC1-DC5).   | 
|  | 30 | + | 
|  | 31 | +Official repository: [teldrive](https://github.com/tgdrive/teldrive) | 
|  | 32 | + | 
|  | 33 | +Setup guide: [teldrive Installation](https://teldrive-docs.pages.dev/docs/getting-started/prerequisites) | 
|  | 34 | + | 
|  | 35 | +## Parameters | 
|  | 36 | + | 
|  | 37 | +### Address | 
|  | 38 | +Your teldrive backend url without suffix dash. | 
|  | 39 | + | 
|  | 40 | +Example: `https://teldrive.example.com` | 
|  | 41 | + | 
|  | 42 | +### Authentication | 
|  | 43 | +Only support `Cookie` authentication. | 
|  | 44 | + | 
|  | 45 | +You can get cookie from your browser after login to teldrive web interface. | 
|  | 46 | + | 
|  | 47 | +It should start with `access_token=xxx.xxx.xxx`, which is jwt token format style. | 
|  | 48 | + | 
|  | 49 | + | 
|  | 50 | + | 
|  | 51 | +::: tip | 
|  | 52 | +Only the string with access_token= is required. | 
|  | 53 | +::: | 
|  | 54 | + | 
|  | 55 | +### Chunk Size | 
|  | 56 | +Upload chunk size in MiB. | 
|  | 57 | + | 
|  | 58 | +Default is `10` (10MiB). You can set it to a smaller value if you have issues with large files. | 
|  | 59 | + | 
|  | 60 | +if chunk size is bigger than file size, it will not split the file, and upload it as a whole with single thread. | 
|  | 61 | + | 
|  | 62 | +### Concurrency | 
|  | 63 | +Upload concurrency, default is `4`. | 
|  | 64 | + | 
|  | 65 | +You should limit the concurrency with your machine actual memory, by calculating `chunk size * concurrency`. | 
|  | 66 | + | 
|  | 67 | +## Download | 
|  | 68 | +**Notice: If webdav 302 is enabled, it will create share file and public the download link with 1 hour expiration time.** | 
|  | 69 | + | 
|  | 70 | +Otherwise, it will use the default local proxy by AlistGo. | 
|  | 71 | + | 
|  | 72 | +## **The default download method used** | 
|  | 73 | + | 
|  | 74 | +```mermaid | 
|  | 75 | +--- | 
|  | 76 | +title: Which download method is used by default? | 
|  | 77 | +--- | 
|  | 78 | +flowchart TB | 
|  | 79 | +    style a1 fill:#bbf,stroke:#f66,stroke-width:2px,color:#fff | 
|  | 80 | +    style a2 fill:#ff7575,stroke:#333,stroke-width:4px | 
|  | 81 | +    subgraph ide1 [ ] | 
|  | 82 | +    a1 | 
|  | 83 | +    end | 
|  | 84 | +    a1[302]:::someclass====|default|a2[user equipment] | 
|  | 85 | +    classDef someclass fill:#f96 | 
|  | 86 | +    c1[local proxy]-.alternative.->a2[user equipment] | 
|  | 87 | +    b1[Download proxy URL]-.alternative.->a2[user equipment] | 
|  | 88 | +    click a1 "../drivers/common.html#webdav-policy" | 
|  | 89 | +    click b1 "../drivers/common.html#webdav-policy" | 
|  | 90 | +    click c1 "../drivers/common.html#webdav-policy" | 
|  | 91 | +``` | 
0 commit comments