mirror of
https://github.com/FOSSBilling/FOSSBilling.git
synced 2026-11-30 04:07:07 +09:00
Add Guzzle settings and improve grammar
This commit is contained in:
1 parent
f777e4564d
commit
fee1edcbcc
1 file changed
+23
-17
+23
-17
@@ -2,11 +2,11 @@
|
||||
/**
|
||||
* BoxBilling configuration file example
|
||||
*
|
||||
* If you are not using the web-installer, you can rename this file
|
||||
* If you are not using the web installer, you can rename this file
|
||||
* to "bb-config.php" and fill in the values.
|
||||
* Import /install/sql/structure.sql to your database
|
||||
* Import /install/sql/content.sql to your database
|
||||
* Open browser http://www.yourdomain.com/index.php?_url=/bb-admin to create new admin account.
|
||||
* Open browser http://www.yourdomain.com/index.php?_url=/bb-admin to create a new admin account.
|
||||
* Remove /install directory
|
||||
*/
|
||||
|
||||
@@ -20,41 +20,42 @@ return array(
|
||||
'url' => 'http://localhost/',
|
||||
|
||||
/**
|
||||
* The URL prefix to access the BB admin area. Ex: '/bb-admin' = https://example.com/bb-admin
|
||||
* The URL prefix to access the BB admin area. Ex: '/bb-admin' for https://example.com/bb-admin
|
||||
*/
|
||||
'admin_area_prefix' => '/bb-admin',
|
||||
|
||||
/**
|
||||
* Enable or Disable the display of notices
|
||||
* Enable or disable displaying advanced debugging messages.
|
||||
* You should keep this disabled unless you're making tests as it can reveal some information about your server.
|
||||
*/
|
||||
'debug' => false,
|
||||
|
||||
/**
|
||||
* Enable or Disable search engine friendly urls.
|
||||
* Enable or disable search engine friendly URLs.
|
||||
* Configure .htaccess file before enabling this feature
|
||||
* Set to TRUE if using nginx
|
||||
*/
|
||||
'sef_urls' => true,
|
||||
|
||||
/**
|
||||
* Application timezone
|
||||
* System timezone
|
||||
*/
|
||||
'timezone' => 'UTC',
|
||||
|
||||
/**
|
||||
* Set BoxBilling locale
|
||||
* BoxBilling locale
|
||||
*/
|
||||
'locale' => 'en_US',
|
||||
|
||||
/**
|
||||
* Set default date format for localized strings
|
||||
* Format information: http://php.net/manual/en/function.strftime.php
|
||||
* @see 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
|
||||
* @see http://php.net/manual/en/function.strftime.php
|
||||
*/
|
||||
'locale_time_format' => ' %T',
|
||||
|
||||
@@ -71,7 +72,7 @@ return array(
|
||||
/**
|
||||
* Database type. Don't change this if in doubt.
|
||||
*/
|
||||
'type' =>'mysql',
|
||||
'type' => 'mysql',
|
||||
|
||||
/**
|
||||
* Database hostname. Don't change this if in doubt.
|
||||
@@ -96,7 +97,7 @@ return array(
|
||||
/**
|
||||
* Database Port
|
||||
*/
|
||||
'port' =>'3306',
|
||||
'port' => getenv('DB_PORT') ?: '3306',
|
||||
),
|
||||
|
||||
'twig' => array(
|
||||
@@ -106,10 +107,10 @@ return array(
|
||||
),
|
||||
|
||||
'api' => array(
|
||||
// all requests made to API must have referrer request header with the same url as BoxBilling installation
|
||||
// All requests made to the API must have referrer request header with the same URL as the BoxBilling installation
|
||||
'require_referrer_header' => false,
|
||||
|
||||
// empty array will allow all IPs to access API
|
||||
// Empty array will allow all IPs to access the API
|
||||
'allowed_ips' => array(),
|
||||
|
||||
// Time span for limit in seconds
|
||||
@@ -119,10 +120,10 @@ return array(
|
||||
'rate_limit' => 1000,
|
||||
|
||||
/**
|
||||
* Note about rate limiting login attempts:
|
||||
* When the limit is reach, a default delay of 2 seconds is added to the request.
|
||||
* This makes brute forcing a password basically useless while not outright blocking legitimate traffic.
|
||||
* When calculating, ensure the rate limited traffic can still make enough requests to stay rate limited
|
||||
* Note about rate-limiting login attempts:
|
||||
* When the limit is reached, a default delay of 2 seconds is added to the request.
|
||||
* This makes brute-forcing a password useless while not outright blocking legitimate traffic.
|
||||
* When calculating, ensure the rate-limited traffic can still make enough requests to stay rate limited
|
||||
* Ex: One request every 2 seconds is more than 20 times in 1 minute, so the IP will remain throttled
|
||||
*/
|
||||
|
||||
@@ -135,4 +136,9 @@ return array(
|
||||
// How many login requests allowed per time span
|
||||
'rate_limit_login' => 20,
|
||||
),
|
||||
|
||||
'guzzle' => array(
|
||||
// The user agent to be used when making requests to external services
|
||||
'user_agent' => 'Mozilla/5.0 (RedHatEnterpriseLinux; Linux x86_64; BoxBilling; +http://boxbilling.org) Gecko/20100101 Firefox/93.0',
|
||||
),
|
||||
);
|
||||
Reference in new issue
Block a user