https://github.com/nelu/rutorrent-filemanager-share
File share link plugin
https://github.com/nelu/rutorrent-filemanager-share
Last synced: 4 months ago
JSON representation
File share link plugin
- Host: GitHub
- URL: https://github.com/nelu/rutorrent-filemanager-share
- Owner: nelu
- Created: 2019-11-29T02:00:45.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-10-23T20:42:17.000Z (almost 2 years ago)
- Last Synced: 2024-10-24T08:30:55.474Z (over 1 year ago)
- Language: JavaScript
- Size: 87.9 KB
- Stars: 5
- Watchers: 4
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# rutorrent-filemanager-share
File share link creation plugin for rutorrent filemanager.
This plugin is available both in the 'Files' and 'File Manager' tabs context menus
### Features:
- unique file download link
- link password protection
- link expire timer
- downloads stats
### Dependencies:
- [rutorrent-filemanager](https://github.com/nelu/rutorrent-filemanager)
plugin
- openssl php extension
### Configuration
Plugin configuration `conf.php`:
```php
$limits,
// whether a password is mandatory for link creation
'require_password' => false,
// url with the path where a symlink to share.php can be found
// example: http://mydomain.com/share.php
// relative url example
// 'endpoint' = '//'.$_SERVER['HTTP_HOST'].'/rutorrent/plugins/filemanager-share/share.php';
'endpoint' => $_ENV['RU_FLM_SHARE_ENDPOINT'] ?? '',
// key used for storing encrypted data
"key" => $_ENV['RU_FLM_SHARE_KEY'] ?? "mycu570m3ncryp710nk3y",
// automatically remove shares - only when removing the file or the containing directory
"remove_share_on_file_delete" => false,
// automatically remove expired shares - called only when removing
"purge_expired_shares" => true
];
```
- `key` - the key used to store encrypted data like share passwords. CHANGE THE DEFAULT VALUE!
- `$limits['duration']` - max link expire time in hours if `$limits['nolimit']` is disabled
- `$limits['links']` - max number of links the user can create
- `require_password` - make password required for shares
- `endpoint` - a public entrypoint (no htpasswd) where `share.php` is accessible. Should be a symlink to `plugins/filemanager-share/share.php`
Example for `endpoint` config with htpasswd enabled:
- rutorrent url (htpasswd): https://mydomain.com/rutorrent/
- public url (no htpasswd): https://mydomain.com/share/ - where `/share/index.php` is a symlink to `rutorrent/plugins/filemanager-share/share.php`