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