-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathbb-config-sample.php
111 lines (89 loc) · 2.7 KB
/
bb-config-sample.php
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
<?php
/**
* BoxBilling configuration file example
*
* If you are not using the web-installer, you can rename this file
* to "bb-config.php" and fill in the values.
* Import /install/structure.sql to your database
* Import /install/content.sql to your database
* Open browser http://www.youdomain.com/index.php?_url=/bb-admin to create new admin account.
* Remove /install directory
*/
return array(
/**
* Full URL where BoxBilling is installed with trailing slash
*/
'url' => 'http://www.boxbilling.test/',
'admin_area_prefix' => '/bb-admin',
/**
* Enable or Disable the display of notices
*/
'debug' => false,
/**
* Enable or Disable search engine friendly urls.
* Configure .htaccess file before enabling this feature
* Set to TRUE if using nginx
*/
'sef_urls' => false,
/**
* Application timezone
*/
'timezone' => 'UTC',
/**
* Set BoxBilling locale
*/
'locale' => 'en_US',
/**
* Set default date format for localized strings
* Format information: http://php.net/manual/en/function.strftime.php
*/
'locale_date_format' => '%A, %d %B %G',
/**
* Set default time format for localized strings
* Format information: http://php.net/manual/en/function.strftime.php
*/
'locale_time_format' => ' %T',
/**
* Set location to store sensitive data
*/
'path_data' => dirname(__FILE__) . '/bb-data',
'path_logs' => dirname(__FILE__) . '/bb-data/log/application.log',
'log_to_db' => true,
'db' => array(
/**
* Database type. Don't change this if in doubt.
*/
'type' =>'mysql',
/**
* Database hostname. Don't change this if in doubt.
*/
'host' =>'127.0.0.1',
/**
* The name of the database for BoxBilling
*/
'name' =>'boxbilling',
/**
* Database username
*/
'user' =>'foo',
/**
* Database password
*/
'password' =>'foo',
),
'twig' => array(
'debug' => false,
'auto_reload' => false,
'cache' => dirname(__FILE__) . '/bb-data/cache',
),
'api' => array(
// all requests made to API must have referrer request header with the same url as BoxBilling installation
'require_referrer_header' => false,
// empty array will allow all IPs to access API
'allowed_ips' => array(),
// Time span for limit in seconds
'rate_span' => 60 * 60,
// How many requests allowed per time span
'rate_limit' => 1000,
),
);