3 // If automatic system installation fails:
5 // Copy or rename this file to .htconfig.php
7 // Why .htconfig.php? Because it contains sensitive information which could
8 // give somebody complete control of your database. Apache's default
9 // configuration denies access to and refuses to serve any file beginning
12 // Then set the following for your MySQL installation
14 $db_host = 'your.mysqlhost.com';
15 $db_user = 'mysqlusername';
16 $db_pass = 'mysqlpassword';
17 $db_data = 'mysqldatabasename';
19 // Set the database connection charset to full Unicode (utf8mb4).
20 // Changing this value will likely corrupt the special characters.
21 // You have been warned.
22 $a->config['system']['db_charset'] = "utf8mb4";
24 // Choose a legal default timezone. If you are unsure, use "America/Los_Angeles".
25 // It can be changed later and only applies to timestamps for anonymous viewers.
27 $default_timezone = 'America/Los_Angeles';
29 // Default system language
31 $a->config['system']['language'] = 'en';
33 // What is your site name?
35 $a->config['sitename'] = "Friendica Social Network";
37 // Your choices are REGISTER_OPEN, REGISTER_APPROVE, or REGISTER_CLOSED.
38 // Be certain to create your own personal account before setting
39 // REGISTER_CLOSED. 'register_text' (if set) will be displayed prominently on
40 // the registration page. REGISTER_APPROVE requires you set 'admin_email'
41 // to the email address of an already registered person who can authorise
42 // and/or approve/deny the request.
44 // In order to perform system administration via the admin panel, admin_email
45 // must precisely match the email address of the person logged in.
47 $a->config['register_policy'] = REGISTER_OPEN;
48 $a->config['register_text'] = '';
49 $a->config['admin_email'] = '';
51 // Maximum size of an imported message, 0 is unlimited
53 $a->config['max_import_size'] = 200000;
55 // maximum size of uploaded photos
57 $a->config['system']['maximagesize'] = 800000;
59 // Location of PHP command line processor
61 $a->config['php_path'] = 'php';
63 // Server-to-server private message encryption (RINO) is allowed by default.
64 // set to 0 to disable, 1 to enable
66 $a->config['system']['rino_encrypt'] = 1;
68 // allowed themes (change this from admin panel after installation)
70 $a->config['system']['allowed_themes'] = 'quattro,vier,duepuntozero,smoothly';
72 // default system theme
74 $a->config['system']['theme'] = 'vier';
77 // By default allow pseudonyms
79 $a->config['system']['no_regfullname'] = true;
81 //Deny public access to the local directory
82 //$a->config['system']['block_local_dir'] = false;
84 // Location of the global directory
85 $a->config['system']['directory'] = 'https://dir.friendica.social';
87 // Allowed protocols in link URLs; HTTP protocols always are accepted
88 $a->config['system']['allowed_link_protocols'] = ['ftp', 'ftps', 'mailto', 'cid', 'gopher'];
90 // Authentication cookie lifetime, in days
91 $a->config['system']['auth_cookie_lifetime'] = 7;