]> git.p6c8.net - jirafeau.git/blob - lib/config.original.php
[!!][FEATURE] Let admin overwrite the ToS page
[jirafeau.git] / lib / config.original.php
1 <?php
2 /*
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>
6 *
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.
11 *
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.
16 *
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/>.
19 */
20
21 /**
22 * Default configuration
23 *
24 * To overwrite these settings copy the file,
25 * rename it to »config.local.php« and adapt the parameters.
26 **/
27
28 /* URL of installation, with traling slash (eg. »https://exmaple.com/jirafeau/«)
29 */
30 $cfg['web_root'] = '';
31
32 /* Path to data directory, with trailing slash (eg. »/var/www/data/var_314159265358979323846264«
33 */
34 $cfg['var_root'] = '';
35
36 /* Language - choice between 'auto' or any language located in the /lib/locales/ folder.
37 * The mode »auto« will cause the script to detect the user's browser information
38 * and offer a matching language, and use »en« if it is not available.
39 */
40 $cfg['lang'] = 'auto';
41
42 /* Select a theme - see media folder for available themes
43 */
44 $cfg['style'] = 'courgette';
45
46 /* Propose a preview link if file type is previewable
47 */
48 $cfg['preview'] = true;
49
50 /* Enable the encryption feature
51 * By enabling it, file-level deduplication won't work anymore. See FAQ.
52 */
53 $cfg['enable_crypt'] = false;
54
55 /* Length of link reference
56 */
57 $cfg['link_name_length'] = 8;
58
59 /* Upload password(s).
60 * An empty array will disable the password authentification.
61 * $cfg['upload_password'] = array(); // No password
62 * $cfg['upload_password'] = array('psw1'); // One password
63 * $cfg['upload_password'] = array('psw1', 'psw2'); // Two passwords
64 */
65 $cfg['upload_password'] = array();
66
67 /* List of IP allowed to upload a file.
68 * If the list is empty, then there is no upload restriction based on IP.
69 * Elements of the list can be a single IP (e.g. "123.45.67.89") or
70 * an IP range (e.g. "123.45.0.0/16").
71 * Note that CIDR notation is available for IPv4 only for the moment.
72 */
73 $cfg['upload_ip'] = array();
74
75 /* Password for the admin interface.
76 * An empty password will disable the password authentification.
77 * The password is a sha256 hash of the original version.
78 */
79 $cfg['admin_password'] = '';
80
81 /* If set, let the user be authenticated as administrator.
82 * The user provided here is the user authenticated by HTTP authentication.
83 * Note that Jirafeau does not manage the HTTP login part, it just checks
84 * that the provided user is logged in.
85 * If »admin_password« parameter is set, then the »admin_password« is ignored.
86 */
87 $cfg['admin_http_auth_user'] = '';
88
89 /* Allow user to select different options for file expiration time.
90 * Possible values in array:
91 * 'minute': file is available for one minute
92 * 'hour': file available for one hour
93 * 'day': file available for one day
94 * 'week': file available for one week
95 * 'month': file is available for one month
96 * 'quarter': file is available for three month
97 * 'year': file available for one year
98 * 'none': unlimited availability
99 */
100 $cfg['availabilities'] = array (
101 'minute' => true,
102 'hour' => true,
103 'day' => true,
104 'week' => true,
105 'month' => true,
106 'quarter' => false,
107 'year' => false,
108 'none' => false
109 );
110
111 /* Set a default value for the expiration time.
112 * The value has to equal one of the enabled options in »availabilities«, e.g. »month«.
113 */
114 $cfg['availability_default'] = 'month';
115
116 /* Set maximal upload size expressed in MB.
117 * »0« means unlimited upload size.
118 */
119 $cfg['maximal_upload_size'] = 0;
120
121 /* Proxy IP
122 * If the installation is behind some reverse proxies, it is possible to set
123 * the allowed proxy IP.
124 * $cfg['proxy_ip'] = array('12.34.56.78');
125 * Jirafeau will then get a visitor's IP from HTTP_X_FORWARDED_FOR
126 * instead of REMOTE_ADDR.
127 */
128 $cfg['proxy_ip'] = array();
129
130 /* Required flag to test if the installation is already installed
131 * or needs to start the installation script
132 */
133 $cfg['installation_done'] = false;
134
135 ?>

patrick-canterino.de