]> git.mxchange.org Git - friendica.git/blob - view/templates/htconfig.tpl
Merge branch 'item-activities' of github.com:annando/friendica into item-activities
[friendica.git] / view / templates / htconfig.tpl
1 <?php
2
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.
6  *
7  *  See below for variables that may be overruled by the admin panel.
8  * ********************************************************************/
9
10 // Set the following for your MySQL installation
11 //
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.
14
15 $db_host = '{{$dbhost}}';
16 $db_user = '{{$dbuser}}';
17 $db_pass = '{{$dbpass}}';
18 $db_data = '{{$dbdata}}';
19
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')) || !empty(getenv('MYSQL_USER')))
24         && !empty(getenv('MYSQL_PASSWORD'))
25         && !empty(getenv('MYSQL_DATABASE'))) {
26         $db_host = getenv('MYSQL_HOST') . ':' . getenv('MYSQL_PORT');
27         if (!empty(getenv('MYSQL_USERNAME'))) {
28                 $db_user = getenv('MYSQL_USERNAME');
29         } elseif (!empty(getenv('MYSQL_USER'))) {
30                 $db_user = getenv('MYSQL_USER');
31         }
32         $db_pass = getenv('MYSQL_PASSWORD');
33         $db_data = getenv('MYSQL_DATABASE');
34 }
35
36
37 // Set the database connection charset to full Unicode (utf8mb4).
38 // Changing this value will likely corrupt the special characters.
39 // You have been warned.
40 $a->config['system']['db_charset'] = "utf8mb4";
41
42 // email adress for the system admin
43
44 $a->config['admin_email'] = '{{$adminmail}}';
45
46 // Location of PHP command line processor
47
48 $a->config['php_path'] = '{{$phpath}}';
49
50 // If you are using a subdirectory of your domain you will need to put the
51 // relative path (from the root of your domain) here.
52 // For instance if your URL is 'http://example.com/directory/subdirectory',
53 // set path to 'directory/subdirectory'.
54
55 $a->path = '{{$urlpath}}';
56
57 // Allowed protocols in link URLs; HTTP protocols always are accepted
58 $a->config['system']['allowed_link_protocols'] = array('ftp', 'ftps', 'mailto', 'cid', 'gopher');
59
60 /* *********************************************************************
61  *  The configuration below will be overruled by the admin panel.
62  *  Changes made below will only have an effect if the database does
63  *  not contain any configuration for the friendica system.
64  * *********************************************************************/
65
66 // Choose a legal default timezone. If you are unsure, use "America/Los_Angeles".
67 // It can be changed later and only applies to timestamps for anonymous viewers.
68
69 $default_timezone = '{{$timezone}}';
70
71 // Default system language
72
73 $a->config['system']['language'] = '{{$language}}';
74
75 // What is your site name?
76
77 $a->config['sitename'] = "My Friend Network";
78
79 // Your choices are REGISTER_OPEN, REGISTER_APPROVE, or REGISTER_CLOSED.
80 // Be certain to create your own personal account before setting
81 // REGISTER_CLOSED. 'register_text' (if set) will be displayed prominently on
82 // the registration page. REGISTER_APPROVE requires you set 'admin_email'
83 // to the email address of an already registered person who can authorise
84 // and/or approve/deny the request.
85
86 $a->config['register_policy'] = REGISTER_OPEN;
87 $a->config['register_text'] = '';
88
89 // Maximum size of an imported message, 0 is unlimited
90
91 $a->config['max_import_size'] = 200000;
92
93 // maximum size of uploaded photos
94
95 $a->config['system']['maximagesize'] = 800000;
96
97 // Server-to-server private message encryption (RINO) is allowed by default.
98 // set to 0 to disable, 1 to enable
99
100 $a->config['system']['rino_encrypt'] = {{$rino}};
101
102 // default system theme
103
104 $a->config['system']['theme'] = 'vier';
105 $a->config['system']['allowed_themes'] = 'vier,quattro,duepuntozero,smoothly,frio';
106
107 // By default allow pseudonyms
108
109 $a->config['system']['no_regfullname'] = true;
110
111 //Deny public access to the local directory
112 //$a->config['system']['block_local_dir'] = false;
113
114 // Location of the global directory
115 $a->config['system']['directory'] = 'https://dir.friendica.social';
116
117 // Authentication cookie lifetime, in days
118 $a->config['system']['auth_cookie_lifetime'] = 7;