|
| 1 | +/* |
| 2 | +################################################################################################################# |
| 3 | +This is an OPTIONAL configuration file. rename this file into config.php to use this configuration |
| 4 | +The role of this file is to make updating of "tinyfilemanager.php" easier. |
| 5 | +So you can: |
| 6 | +-Feel free to remove completely this file and configure "tinyfilemanager.php" as a single file application. |
| 7 | +or |
| 8 | +-Put inside this file all the static configuration you want and forgot to configure "tinyfilemanager.php". |
| 9 | +################################################################################################################# |
| 10 | +*/ |
| 11 | + |
| 12 | +// Auth with login/password |
| 13 | +// set true/false to enable/disable it |
| 14 | +// Is independent from IP white- and blacklisting |
| 15 | +$use_auth = true; |
| 16 | + |
| 17 | +// Login user name and password |
| 18 | +// Users: array('Username' => 'Password', 'Username2' => 'Password2', ...) |
| 19 | +// Generate secure password hash - https://tinyfilemanager.github.io/docs/pwd.html |
| 20 | +$auth_users = array( |
| 21 | + 'admin' => '{{ $password }}', |
| 22 | +); |
| 23 | + |
| 24 | +// Readonly users |
| 25 | +// e.g. array('users', 'guest', ...) |
| 26 | +$readonly_users = array( |
| 27 | + 'user' |
| 28 | +); |
| 29 | + |
| 30 | +// Enable highlight.js (https://highlightjs.org/) on view's page |
| 31 | +$use_highlightjs = true; |
| 32 | + |
| 33 | +// highlight.js style |
| 34 | +// for dark theme use 'ir-black' |
| 35 | +$highlightjs_style = 'vs'; |
| 36 | + |
| 37 | +// Enable ace.js (https://ace.c9.io/) on view's page |
| 38 | +$edit_files = true; |
| 39 | + |
| 40 | +// Default timezone for date() and time() |
| 41 | +// Doc - http://php.net/manual/en/timezones.php |
| 42 | +$default_timezone = 'Etc/UTC'; // UTC |
| 43 | + |
| 44 | +// Root path for file manager |
| 45 | +// use absolute path of directory i.e: '/var/www/folder' or $_SERVER['DOCUMENT_ROOT'].'/folder' |
| 46 | +$root_path = '{{ $rootPath }}'; |
| 47 | + |
| 48 | +// Root url for links in file manager.Relative to $http_host. Variants: '', 'path/to/subfolder' |
| 49 | +// Will not working if $root_path will be outside of server document root |
| 50 | +$root_url = ''; |
| 51 | + |
| 52 | +// Server hostname. Can set manually if wrong |
| 53 | +$http_host = $_SERVER['HTTP_HOST']; |
| 54 | + |
| 55 | +// user specific directories |
| 56 | +// array('Username' => 'Directory path', 'Username2' => 'Directory path', ...) |
| 57 | +$directories_users = array(); |
| 58 | + |
| 59 | +// input encoding for iconv |
| 60 | +$iconv_input_encoding = 'UTF-8'; |
| 61 | + |
| 62 | +// date() format for file modification date |
| 63 | +// Doc - https://www.php.net/manual/en/datetime.format.php |
| 64 | +$datetime_format = 'd.m.y H:i:s'; |
| 65 | + |
| 66 | +// Allowed file extensions for create and rename files |
| 67 | +// e.g. 'txt,html,css,js' |
| 68 | +$allowed_file_extensions = ''; |
| 69 | + |
| 70 | +// Allowed file extensions for upload files |
| 71 | +// e.g. 'gif,png,jpg,html,txt' |
| 72 | +$allowed_upload_extensions = ''; |
| 73 | + |
| 74 | +// Favicon path. This can be either a full url to an .PNG image, or a path based on the document root. |
| 75 | +// full path, e.g http://example.com/favicon.png |
| 76 | +// local path, e.g images/icons/favicon.png |
| 77 | +$favicon_path = ''; |
| 78 | + |
| 79 | +// Files and folders to excluded from listing |
| 80 | +// e.g. array('myfile.html', 'personal-folder', '*.php', ...) |
| 81 | +$exclude_items = array(''); |
| 82 | + |
| 83 | +// Online office Docs Viewer |
| 84 | +// Availabe rules are 'google', 'microsoft' or false |
| 85 | +// google => View documents using Google Docs Viewer |
| 86 | +// microsoft => View documents using Microsoft Web Apps Viewer |
| 87 | +// false => disable online doc viewer |
| 88 | +$online_viewer = 'google'; |
| 89 | + |
| 90 | +// Sticky Nav bar |
| 91 | +// true => enable sticky header |
| 92 | +// false => disable sticky header |
| 93 | +$sticky_navbar = true; |
| 94 | + |
| 95 | +// Path display mode when viewing file information |
| 96 | +// 'full' => show full path |
| 97 | +// 'relative' => show path relative to root_path |
| 98 | +// 'host' => show path on the host |
| 99 | +$path_display_mode = 'full'; |
| 100 | + |
| 101 | +// max upload file size |
| 102 | +$max_upload_size_bytes = 5000; |
| 103 | + |
| 104 | +// Possible rules are 'OFF', 'AND' or 'OR' |
| 105 | +// OFF => Don't check connection IP, defaults to OFF |
| 106 | +// AND => Connection must be on the whitelist, and not on the blacklist |
| 107 | +// OR => Connection must be on the whitelist, or not on the blacklist |
| 108 | +$ip_ruleset = 'OFF'; |
| 109 | + |
| 110 | +// Should users be notified of their block? |
| 111 | +$ip_silent = true; |
| 112 | + |
| 113 | +// IP-addresses, both ipv4 and ipv6 |
| 114 | +$ip_whitelist = array( |
| 115 | + '127.0.0.1', // local ipv4 |
| 116 | + '::1' // local ipv6 |
| 117 | +); |
| 118 | + |
| 119 | +// IP-addresses, both ipv4 and ipv6 |
| 120 | +$ip_blacklist = array( |
| 121 | + '0.0.0.0', // non-routable meta ipv4 |
| 122 | + '::' // non-routable meta ipv6 |
| 123 | +); |
| 124 | + |
| 125 | +?> |
0 commit comments