forked from prasathmani/tinyfilemanager
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjoyee-bridge.config.sample.php
More file actions
51 lines (45 loc) · 1.47 KB
/
Copy pathjoyee-bridge.config.sample.php
File metadata and controls
51 lines (45 loc) · 1.47 KB
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<?php
// Joyee Bridge local configuration sample.
// Copy this file on the server to joyee-bridge.config.php and edit there.
// Do not commit the real joyee-bridge.config.php with live credentials.
$joyee_bridge_enabled = true;
// Public-facing bridge key used only for this bridge.
// Must be different from the real API token.
$joyee_bridge_key = 'replace_with_long_random_bridge_key';
// Real TinyFileManager API token from api.config.php.
// This value stays on the server and is never exposed in repository.
$joyee_api_token = 'replace_with_real_api_token_from_api_config';
// Joyee bridge isolated workspace root.
// Keep Joyee operations separated from other workspaces (for example Mirko).
$joyee_bridge_root_path = __DIR__ . '/Joyee';
// Optional Joyee token config override.
// root_path is always enforced to $joyee_bridge_root_path by joyee-bridge.php.
$joyee_api_token_config = array(
'label' => 'Joyee Bridge API',
'role' => 'admin',
'capabilities' => array(
'list' => true,
'stat' => true,
'read' => true,
'write' => true,
'mkdir' => true,
'delete' => true,
'rename' => true,
'move' => true,
'copy' => true,
),
);
// Restrict what Joyee can do through this bridge.
// Start conservative; enable write/delete only after testing.
$joyee_bridge_allowed_actions = array(
'ping',
'list',
'stat',
'read',
'write',
'mkdir',
'rename',
'move',
'copy',
'delete',
);