]>
git.p6c8.net - jirafeau_mojo42.git/blob - lib/config.original.php
b07f0e2386a748ed63fc5f802d5ff63d3ea9214a
3 * Jirafeau, your web file repository
4 * Copyright (C) 2008 Julien "axolotl" BERNARD <axolotl@magieeternelle.org>
5 * Copyright (C) 2015 Jerome Jutteau <j.jutteau@gmail.com>
7 * This program is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU Affero General Public License as
9 * published by the Free Software Foundation, either version 3 of the
10 * License, or (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU Affero General Public License for more details.
17 * You should have received a copy of the GNU Affero General Public License
18 * along with this program. If not, see <https://www.gnu.org/licenses/>.
22 * default configuration
23 * if you want to change this, overwrite in a config.local.php file
27 /* Don't forget the ending '/' */
28 $cfg['web_root'] = '';
29 $cfg['var_root'] = '';
31 /* Lang choice between 'auto', 'en' and 'fr'.
32 * 'auto' mode will take the user's browser informations.
33 * Will take english if user's langage is not available.
35 $cfg['lang'] = 'auto';
36 /* Select your style :) See media folder */
37 $cfg['style'] = 'courgette';
38 /* Propose a preview link if file type is previewable. */
39 $cfg['preview'] = true;
40 /* Encryption feature. disable it by default.
41 * By enabling it, file-level deduplication won't work.
43 $cfg['enable_crypt'] = false;
44 /* Split length of link refenrece. */
45 $cfg['link_name_length'] = 8;
46 /* Upload password(s). Empty array disable password authentification.
47 * $cfg['upload_password'] = array(); // No password
48 * $cfg['upload_password'] = array('psw1'); // One password
49 * $cfg['upload_password'] = array('psw1', 'psw2'); // Two passwords
52 $cfg['upload_password'] = array();
53 /* List of IP allowed to upload a file.
54 * If list is empty, then there is no upload restriction based on IP
55 * Elements of the list can be a single IP (e.g. "123.45.67.89") or
56 * an IP range (e.g. "123.45.0.0/16").
57 * Note that CIDR notation is available for IPv4 only for the moment.
59 $cfg['upload_ip'] = array();
60 /* An empty admin password will disable the classic admin password
63 $cfg['admin_password'] = '';
64 /* If set, let's the user to be authenticated as administrator.
65 * The user provided here is the user authenticated by HTTP authentication.
66 * Note that Jirafeau does not manage the HTTP login part, it just check
67 * that the provided user is logged.
68 * If admin_password parameter is also set, admin_password is ignored.
70 $cfg['admin_http_auth_user'] = '';
71 /* Select different options for availability of uploaded files.
72 * Possible values in array:
73 * 'minute': file is available for one minute
74 * 'hour': file available for one hour
75 * 'day': file available for one day
76 * 'week': file available for one week
77 * 'month': file is available for one month
78 * 'year': file available for one year
79 * 'none': unlimited availability
81 $cfg['availabilities'] = array ('minute' => true,
88 /* Set a default value for the expiration time.
89 * The value has to equal one of the enabled options in »availabilities«, e.g. »month«)
91 $cfg['availability_default'] = 'month';
92 /* Set maximal upload size expressed in MB.
93 * 0 mean unlimited upload size.
95 $cfg['maximal_upload_size'] = 0;
96 /* If your Jirafeau is behind some reverse proxies, you can set there IPs
97 * so Jirafeau get visitor's IP from HTTP_X_FORWARDED_FOR instead of
100 * $cfg['proxy_ip'] = array('12.34.56.78');
102 $cfg['proxy_ip'] = array();
103 /* Installation is done ? */
104 $cfg['installation_done'] = false;
106 /* Try to include user's local configuration. */
107 if ((basename (__FILE__
) != 'config.local.php')
108 && file_exists (JIRAFEAU_ROOT
.'lib/config.local.php'))
110 require (JIRAFEAU_ROOT
.'lib/config.local.php');
patrick-canterino.de