forked from zulfajuniadi/PHP-REST-Server
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.php.default
More file actions
64 lines (39 loc) · 1.32 KB
/
config.php.default
File metadata and controls
64 lines (39 loc) · 1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<?php
/* debugging */
$config['debug'] = false;
/* sessions config */
$config['session_expiry'] = 60 * 60 * 4; // 4 hours
/* /manage username and password */
$config['username'] = 'admin';
$config['password'] = 'admin';
/* Timezone */
//http://www.php.net/manual/en/timezones.php
$config['timezone'] = 'UTC';
(isset($config['timezone'])) ? date_default_timezone_set($config['timezone']) : null;
/* Database */
// Uncomment which database you'd like to use.
// http://www.php.net/manual/en/pdo.connections.php
/* SQLite */
$config['db_conn'] = 'sqlite:db/database.sqlite3';
$config['db_user'] = null;
$config['db_pass'] = null;
/* MySQL */
// $config['db_conn'] = 'mysql:host=localhost;dbname=APIServer';
// $config['db_user'] = 'root';
// $config['db_pass'] = null;
/* PostgreSQL */
// $config['db_conn'] = 'pgsql:host=localhost;dbname=APIServer';
// $config['db_user'] = 'root';
// $config['db_pass'] = null;
/* CUBRID */
// $config['db_conn'] = 'cubrid:host=localhost;port=30000;dbname=APIServer';
// $config['db_user'] = 'root';
// $config['db_pass'] = null;
/* GET Query Limit */
// format = array(int $start, int $length);
// 0 to disable
$config['default_sql_limit'] = array(0,25);
/* Rate Limiting / Package / hour */
// not implemented yet
// 0 = disable
$config['rate_limit'] = 100;