3 /* ********************************************************************
4 * The following configuration has to be within the .htconfig.php
5 * file and will not be overruled by decisions made in the admin panel.
7 * See below for variables that may be overruled by the admin panel.
8 * ********************************************************************/
10 // Set the following for your MySQL installation
12 // If you need to specify a port for reacing the database, you can do so by
13 // adding ":portnumber" after "your.mysqlhost.com" in the $db_host config.
15 $db_host = '{{$dbhost}}';
16 $db_user = '{{$dbuser}}';
17 $db_pass = '{{$dbpass}}';
18 $db_data = '{{$dbdata}}';
20 // Use environment variables for mysql if they are set beforehand
21 if (!empty(getenv('MYSQL_HOST'))
22 && !empty(getenv('MYSQL_PORT'))
23 && !empty(getenv('MYSQL_USERNAME'))
24 && !empty(getenv('MYSQL_PASSWORD'))
25 && !empty(getenv('MYSQL_DATABASE'))) {
26 $db_host = getenv('MYSQL_HOST') . ':' . getenv('MYSQL_PORT');
27 $db_user = getenv('MYSQL_USERNAME');
28 $db_pass = getenv('MYSQL_PASSWORD');
29 $db_data = getenv('MYSQL_DATABASE');
32 // Set the database connection charset to full Unicode (utf8mb4).
33 // Changing this value will likely corrupt the special characters.
34 // You have been warned.
35 $a->config['system']['db_charset'] = "utf8mb4";
37 // email adress for the system admin
39 $a->config['admin_email'] = '{{$adminmail}}';
41 // Location of PHP command line processor
43 $a->config['php_path'] = '{{$phpath}}';
45 // If you are using a subdirectory of your domain you will need to put the
46 // relative path (from the root of your domain) here.
47 // For instance if your URL is 'http://example.com/directory/subdirectory',
48 // set path to 'directory/subdirectory'.
50 $a->path = '{{$urlpath}}';
52 // Allowed protocols in link URLs; HTTP protocols always are accepted
53 $a->config['system']['allowed_link_protocols'] = array('ftp', 'ftps', 'mailto', 'cid', 'gopher');
55 /* *********************************************************************
56 * The configuration below will be overruled by the admin panel.
57 * Changes made below will only have an effect if the database does
58 * not contain any configuration for the friendica system.
59 * *********************************************************************/
61 // Choose a legal default timezone. If you are unsure, use "America/Los_Angeles".
62 // It can be changed later and only applies to timestamps for anonymous viewers.
64 $default_timezone = '{{$timezone}}';
66 // Default system language
68 $a->config['system']['language'] = '{{$language}}';
70 // What is your site name?
72 $a->config['sitename'] = "My Friend Network";
74 // Your choices are REGISTER_OPEN, REGISTER_APPROVE, or REGISTER_CLOSED.
75 // Be certain to create your own personal account before setting
76 // REGISTER_CLOSED. 'register_text' (if set) will be displayed prominently on
77 // the registration page. REGISTER_APPROVE requires you set 'admin_email'
78 // to the email address of an already registered person who can authorise
79 // and/or approve/deny the request.
81 $a->config['register_policy'] = REGISTER_OPEN;
82 $a->config['register_text'] = '';
84 // Maximum size of an imported message, 0 is unlimited
86 $a->config['max_import_size'] = 200000;
88 // maximum size of uploaded photos
90 $a->config['system']['maximagesize'] = 800000;
92 // Server-to-server private message encryption (RINO) is allowed by default.
93 // set to 0 to disable, 1 to enable
95 $a->config['system']['rino_encrypt'] = {{$rino}};
97 // default system theme
99 $a->config['system']['theme'] = 'vier';
100 $a->config['system']['allowed_themes'] = 'vier,quattro,duepuntozero,smoothly,frio';
102 // By default allow pseudonyms
104 $a->config['system']['no_regfullname'] = true;
106 //Deny public access to the local directory
107 //$a->config['system']['block_local_dir'] = false;
109 // Location of the global directory
110 $a->config['system']['directory'] = 'https://dir.friendica.social';
112 // Authentication cookie lifetime, in days
113 $a->config['system']['auth_cookie_lifetime'] = 7;