3 /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
6 * Behavior override file
10 * Copyright © 2017-2021 The Galette Team
12 * This file is part of Galette (https://galette.eu).
14 * Galette is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU General Public License as published by
16 * the Free Software Foundation, either version 3 of the License, or
17 * (at your option) any later version.
19 * Galette is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 * GNU General Public License for more details.
24 * You should have received a copy of the GNU General Public License
25 * along with Galette. If not, see <http://www.gnu.org/licenses/>.
30 * @author Johan Cwiklinski <johan@x-tnd.be>
32 * @copyright 2017-2021 The Galette Team
33 * @license http://www.gnu.org/licenses/gpl-3.0.html GPL License 3.0 or (at your option) any later version
34 * @link https://galette.eu
37 //change this *ONLY* for debug purposes!
38 //define('GALETTE_DISPLAY_ERRORS', true);
40 /* Uncomment and tune to read user IP addresses from the X-Forwarded-For header
42 * This is for applications sitting behind one or several proxies.
44 * Don't uncomment if the application doesn't sit behind a proxy, as it would
45 * allow potential attackers to replace their IP addresses with anything,
46 * increasing a bit their stealth (IP address don't mean that much anyway)
48 * Typically each proxy will append its client's IP address to this header
49 * The value is used the index of the IP address to consider, from the end
50 * of the header values, starting with 1.
52 * Hence the provided example is the simplest suitable for being behind
53 * a single reverse proxy
55 //define('GALETTE_X_FORWARDED_FOR_INDEX', 1);
58 * Uncomment to enable the installer page even if galette is already installed and up to date
59 * @see https://bugs.galette.eu/issues/1574
61 //define('FORCE_INSTALLER', true);