]> git.p6c8.net - jirafeau_mojo42.git/blob - lib/config.original.php
Jirafeau version 4.0.0
[jirafeau_mojo42.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 /* Name the organisation running this installation, eg. 'ACME'
47 */
48 $cfg['organisation'] = 'ACME';
49
50 /* Provide a contact person for this installation, eg. 'John Doe <doe@example.com>'
51 */
52 $cfg['contactperson'] = '';
53
54 /* Give the installation a title, eg. 'Datahub' or 'John Doe Filehost'
55 */
56 $cfg['title'] = '';
57
58 /* Propose a preview link if file type is previewable
59 */
60 $cfg['preview'] = true;
61
62 /* Enable the encryption feature
63 * By enabling it, file-level deduplication won't work anymore. See FAQ.
64 */
65 $cfg['enable_crypt'] = false;
66
67 /* Length of link reference
68 */
69 $cfg['link_name_length'] = 8;
70
71 /* Upload password(s).
72 * An empty array will disable the password authentification.
73 * $cfg['upload_password'] = array(); // No password
74 * $cfg['upload_password'] = array('psw1'); // One password
75 * $cfg['upload_password'] = array('psw1', 'psw2'); // Two passwords
76 */
77 $cfg['upload_password'] = array();
78
79 /* List of IP allowed to upload a file.
80 * If the list is empty, then there is no upload restriction based on IP.
81 * Elements of the list can be a single IP (e.g. "123.45.67.89") or
82 * an IP range (e.g. "123.45.0.0/16").
83 * Note that CIDR notation is available for IPv4 only for the moment.
84 */
85 $cfg['upload_ip'] = array();
86
87 /* List of IP allowed to upload a file without password.
88 * If the list is empty, then there is no upload restriction based on IP.
89 * Elements of the list can be a single IP (e.g. "123.45.67.89") or
90 * an IP range (e.g. "123.45.0.0/16").
91 * Note that CIDR notation is available for IPv4 only for the moment.
92 */
93 $cfg['upload_ip_nopassword'] = array();
94
95 /* Password for the admin interface.
96 * An empty password will disable the password authentification.
97 * The password is a sha256 hash of the original version.
98 */
99 $cfg['admin_password'] = '';
100
101 /* If set, let the user be authenticated as administrator.
102 * The user provided here is the user authenticated by HTTP authentication.
103 * Note that Jirafeau does not manage the HTTP login part, it just checks
104 * that the provided user is logged in.
105 * If »admin_password« parameter is set, then the »admin_password« is ignored.
106 */
107 $cfg['admin_http_auth_user'] = '';
108
109 /* Allow user to select different options for file expiration time.
110 * Possible values in array:
111 * 'minute': file is available for one minute
112 * 'hour': file available for one hour
113 * 'day': file available for one day
114 * 'week': file available for one week
115 * 'month': file is available for one month
116 * 'quarter': file is available for three month
117 * 'year': file available for one year
118 * 'none': unlimited availability
119 */
120 $cfg['availabilities'] = array(
121 'minute' => true,
122 'hour' => true,
123 'day' => true,
124 'week' => true,
125 'month' => true,
126 'quarter' => false,
127 'year' => false,
128 'none' => false
129 );
130
131 /* Set a default value for the expiration time.
132 * The value has to equal one of the enabled options in »availabilities«, e.g. »month«.
133 */
134 $cfg['availability_default'] = 'month';
135
136 /* Set maximal upload size expressed in MB.
137 * »0« means unlimited upload size.
138 */
139 $cfg['maximal_upload_size'] = 0;
140
141 /* Proxy IP
142 * If the installation is behind some reverse proxies, it is possible to set
143 * the allowed proxy IP.
144 * $cfg['proxy_ip'] = array('12.34.56.78');
145 * Jirafeau will then get a visitor's IP from HTTP_X_FORWARDED_FOR
146 * instead of REMOTE_ADDR.
147 */
148 $cfg['proxy_ip'] = array();
149
150 /* Required flag to test if the installation is already installed
151 * or needs to start the installation script
152 */
153 $cfg['installation_done'] = false;

patrick-canterino.de