|
| 1 | +<?php |
| 2 | +/** |
| 3 | + * Passbolt ~ Open source password manager for teams |
| 4 | + * Copyright (c) Passbolt SARL (https://www.passbolt.com) |
| 5 | + * |
| 6 | + * Licensed under GNU Affero General Public License version 3 of the or any later version. |
| 7 | + * For full copyright and license information, please see the LICENSE.txt |
| 8 | + * Redistributions of files must retain the above copyright notice. |
| 9 | + * |
| 10 | + * @copyright Copyright (c) Passbolt SARL (https://www.passbolt.com) |
| 11 | + * @license https://opensource.org/licenses/AGPL-3.0 AGPL License |
| 12 | + * @link https://www.passbolt.com Passbolt(tm) |
| 13 | + * @since 2.0.0 |
| 14 | + */ |
| 15 | +/** |
| 16 | + * PASSBOLT CONFIGURATION FILE TEMPLATE |
| 17 | + * |
| 18 | + * By default passbolt try to use the environment variables or fallback on the default values as |
| 19 | + * defined in default.php. You can use passbolt.default.php as a basis to set your own configuration |
| 20 | + * without using environment variables. |
| 21 | + * |
| 22 | + * 1. copy/paste passbolt.default.php to passbolt.php |
| 23 | + * 2. set the variables in the App section |
| 24 | + * 3. set the variables in the passbolt section |
| 25 | + * |
| 26 | + * To see all available options, you can refer to the default.php file, and modify passsbolt.php accordingly. |
| 27 | + * Do not modify default.php or you may break your upgrade process. |
| 28 | + * |
| 29 | + * Read more about how to install passbolt: https://www.passbolt.com/help/tech/install |
| 30 | + * Any issue, check out our FAQ: https://www.passbolt.com/faq |
| 31 | + * An installation issue? Ask for help to the community: https://community.passbolt.com/ |
| 32 | + */ |
| 33 | +return [ |
| 34 | + |
| 35 | + /** |
| 36 | + * DEFAULT APP CONFIGURATION |
| 37 | + * |
| 38 | + * All the information in this section must be provided in order for passbolt to work |
| 39 | + * This configuration overrides the CakePHP defaults locating in app.php |
| 40 | + * Do not edit app.php as it may break your upgrade process |
| 41 | + */ |
| 42 | + 'App' => [ |
| 43 | + // A base URL to use for absolute links. |
| 44 | + // The url where the passbolt instance will be reachable to your end users. |
| 45 | + // This information is need to render images in emails for example |
| 46 | + 'fullBaseUrl' => 'https://passbolt.local', |
| 47 | + ], |
| 48 | + |
| 49 | + // Database configuration. |
| 50 | + 'Datasources' => [ |
| 51 | + 'default' => [ |
| 52 | + //'host' => 'db', |
| 53 | + //'port' => 'non_standard_port_number', |
| 54 | + 'username' => 'passbolt', |
| 55 | + 'password' => '±!@#$%^&*()_+=-}{|:;<>?', |
| 56 | + 'database' => 'passbolt', |
| 57 | + ], |
| 58 | + ], |
| 59 | + |
| 60 | + // Email configuration. |
| 61 | + 'EmailTransport' => [ |
| 62 | + 'default' => [ |
| 63 | + 'host' => 'localhost', |
| 64 | + 'port' => 25, |
| 65 | + 'username' => 'user', |
| 66 | + 'password' => 'secret', |
| 67 | + // Is this a secure connection? true if yes, null if no. |
| 68 | + 'tls' => null, |
| 69 | + //'timeout' => 30, |
| 70 | + //'client' => null, |
| 71 | + //'url' => null, |
| 72 | + ], |
| 73 | + ], |
| 74 | + 'Email' => [ |
| 75 | + 'default' => [ |
| 76 | + // Defines the default name and email of the sender of the emails. |
| 77 | + 'from' => ['passbolt@your_organization.com' => 'Passbolt'], |
| 78 | + //'charset' => 'utf-8', |
| 79 | + //'headerCharset' => 'utf-8', |
| 80 | + ], |
| 81 | + ], |
| 82 | + |
| 83 | + /** |
| 84 | + * DEFAULT PASSBOLT CONFIGURATION |
| 85 | + * |
| 86 | + * This is the default configuration. |
| 87 | + * It enforces the use of ssl, and does not provide a default OpenPGP key. |
| 88 | + * If your objective is to try passbolt quickly for evaluation purpose, and security is not important |
| 89 | + * you can use the demo config example provided in the next section below. |
| 90 | + */ |
| 91 | + 'passbolt' => [ |
| 92 | + // GPG Configuration. |
| 93 | + // The keyring must to be owned and accessible by the webserver user. |
| 94 | + // Example: www-data user on Debian |
| 95 | + 'gpg' => [ |
| 96 | + // Tell GPG where to find the keyring. |
| 97 | + // If putenv is set to false, gnupg will use the default path ~/.gnupg. |
| 98 | + // For example : |
| 99 | + // - Apache on Centos it would be in '/usr/share/httpd/.gnupg' |
| 100 | + // - Apache on Debian it would be in '/var/www/.gnupg' |
| 101 | + // - Nginx on Centos it would be in '/var/lib/nginx/.gnupg' |
| 102 | + // - etc. |
| 103 | + 'keyring' => '/var/lib/passbolt/.gnupg', |
| 104 | + // |
| 105 | + // Replace GNUPGHOME with above value even if it is set. |
| 106 | + //'putenv' => false, |
| 107 | + |
| 108 | + // Main server key. |
| 109 | + 'serverKey' => [ |
| 110 | + // Server private key fingerprint. |
| 111 | + 'fingerprint' => '', |
| 112 | + 'public' => CONFIG . DS . 'gpg' . DS . 'unsecure.key', |
| 113 | + 'private' => CONFIG . DS . 'gpg' . DS . 'unsecure_private.key', |
| 114 | + ], |
| 115 | + ], |
| 116 | + ], |
| 117 | + |
| 118 | +/** |
| 119 | + * DEMO CONFIGURATION EXAMPLE |
| 120 | + * |
| 121 | + * Uncomment the lines below if you want to try passbolt quickly. |
| 122 | + * and if you are not concerned about the security of your installation. |
| 123 | + * (Don't forget to comment the default config above). |
| 124 | + */ |
| 125 | +// 'debug' => true, |
| 126 | +// 'passbolt' => [ |
| 127 | +// 'registration' => [ |
| 128 | +// 'public' => true |
| 129 | +// ], |
| 130 | +// 'ssl' => [ |
| 131 | +// 'force' => false, |
| 132 | +// ], |
| 133 | +// 'gpg' => [ |
| 134 | +// 'serverKey' => [ |
| 135 | +// 'fingerprint' => '2FC8945833C51946E937F9FED47B0811573EE67E', |
| 136 | +// 'public' => CONFIG . DS . 'gpg' . DS . 'unsecure.key', |
| 137 | +// 'private' => CONFIG . DS . 'gpg' . DS . 'unsecure_private.key', |
| 138 | +// ], |
| 139 | +// ], |
| 140 | +// ] |
| 141 | + |
| 142 | +]; |
0 commit comments