]> git.mxchange.org Git - friendica.git/blob - htconfig.php
Updated help-text
[friendica.git] / htconfig.php
1 <?php
2
3 // If automatic system installation fails:
4
5
6
7 // Copy or rename this file to .htconfig.php
8
9 // Why .htconfig.php? Because it contains sensitive information which could
10 // give somebody complete control of your database. Apache's default
11 // configuration denies access to and refuses to serve any file beginning
12 // with .ht
13
14 // Then set the following for your MySQL installation
15
16 $db_host = 'localhost';
17 $db_user = 'friendica';
18 $db_pass = 'friendica';
19 $db_data = 'friendica';
20
21 // Use environment variables for mysql if they are set beforehand
22 if (!empty(getenv('MYSQL_HOST'))
23         && !empty(getenv('MYSQL_PORT'))
24         && !empty(getenv('MYSQL_USERNAME'))
25         && !empty(getenv('MYSQL_PASSWORD'))
26         && !empty(getenv('MYSQL_DATABASE'))) {
27         $db_host = getenv('MYSQL_HOST') . ':' . getenv('MYSQL_PORT');
28         $db_user = getenv('MYSQL_USERNAME');
29         $db_pass = getenv('MYSQL_PASSWORD');
30         $db_data = getenv('MYSQL_DATABASE');
31 }
32
33 // Set the database connection charset to full Unicode (utf8mb4).
34 // Changing this value will likely corrupt the special characters.
35 // You have been warned.
36 $a->config['system']['db_charset'] = "utf8mb4";
37
38 // Choose a legal default timezone. If you are unsure, use "America/Los_Angeles".
39 // It can be changed later and only applies to timestamps for anonymous viewers.
40
41 $default_timezone = 'Europe/Berlin';
42
43 // Default system language
44
45 $a->config['system']['language'] = 'de';
46
47 // What is your site name?
48
49 $a->config['sitename'] = "Philipp Test";
50
51 // Your choices are REGISTER_OPEN, REGISTER_APPROVE, or REGISTER_CLOSED.
52 // Be certain to create your own personal account before setting
53 // REGISTER_CLOSED. 'register_text' (if set) will be displayed prominently on
54 // the registration page. REGISTER_APPROVE requires you set 'admin_email'
55 // to the email address of an already registered person who can authorise
56 // and/or approve/deny the request.
57
58 // In order to perform system administration via the admin panel, admin_email
59 // must precisely match the email address of the person logged in.
60
61 $a->config['register_policy'] = REGISTER_OPEN;
62 $a->config['register_text'] = '';
63 $a->config['admin_email'] = '';
64
65 // Maximum size of an imported message, 0 is unlimited
66
67 $a->config['max_import_size'] = 200000;
68
69 // maximum size of uploaded photos
70
71 $a->config['system']['maximagesize'] = 800000;
72
73 // Location of PHP command line processor
74
75 $a->config['php_path'] = 'php';
76
77 // Server-to-server private message encryption (RINO) is allowed by default.
78 // set to 0 to disable, 1 to enable
79
80 $a->config['system']['rino_encrypt'] = 1;
81
82 // allowed themes (change this from admin panel after installation)
83
84 $a->config['system']['allowed_themes'] = 'quattro,vier,duepuntozero,smoothly';
85
86 // default system theme
87
88 $a->config['system']['theme'] = 'vier';
89
90
91 // By default allow pseudonyms
92
93 $a->config['system']['no_regfullname'] = true;
94
95 //Deny public access to the local directory
96 //$a->config['system']['block_local_dir'] = false;
97
98 // Location of the global directory
99 $a->config['system']['directory'] = 'https://dir.friendica.social';
100
101 // Allowed protocols in link URLs; HTTP protocols always are accepted
102 $a->config['system']['allowed_link_protocols'] = ['ftp', 'ftps', 'mailto', 'cid', 'gopher'];
103
104 // Authentication cookie lifetime, in days
105 $a->config['system']['auth_cookie_lifetime'] = 7;