You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<?php// duration & links limits// 0 = unlimited// max expire time for a share in hours$limits['duration'] = $_ENV['RU_FLM_SHARE_MAX_DURATION'] ?? 0; // 0 - unlimited// max links per user$limits['links'] = $_ENV['RU_FLM_SHARE_MAX_LINKS'] ?? 0; // 0 - unlimitedreturn [
'limits' => $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: https://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: