-
Notifications
You must be signed in to change notification settings - Fork 4
/
conf.php
27 lines (21 loc) · 953 Bytes
/
conf.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?php
// duration & links limits
// 0 = unlimited
$limits['duration'] = 750; // maximum duration hours
$limits['links'] = 0; //maximum sharing links per user
// extra
$limits['nolimit'] = 0; // allow unlimited duration (=~ 100 years) with duration = 0 (the maximum duration limit is kept) [1 = yes | 0 = no]
// path on domain where a symlink to share.php can be found
// example: http://mydomain.com/share.php
// $downloadpath = '//'.$_SERVER['HTTP_HOST'].'/rutorrent/plugins/filemanager-share/share.php';
$downloadpath = '';
// automatically remove shares - only when removing the file or the containing directory
$autoRemove = false;
// automatically remove expired shares - called only when removing
$purgeExpired = true;
return ['limits' => $limits,
'endpoint' => $downloadpath,
"key" => "mycu570m3ncryp710nk3y",
"remove_share_on_file_delete" => $autoRemove,
"purge_expired_shares" => $purgeExpired
];