YGGo/config/app.php.txt

56 lines
1.4 KiB
Plaintext
Raw Normal View History

2023-04-01 16:29:39 +00:00
<?php
// Debug
ini_set('display_errors', '1');
ini_set('display_startup_errors', '1');
error_reporting(E_ALL);
// Website
2023-04-02 15:14:42 +00:00
define('WEBSITE_DOMAIN', (issue($_SERVER['HTTP_HOST']) ? 'http://' . $_SERVER['HTTP_HOST'] : ''));
2023-04-02 20:36:35 +00:00
define('WEBSITE_PAGINATION_SEARCH_RESULTS_LIMIT', 100);
2023-04-02 22:30:09 +00:00
define('WEBSITE_IDENTICON_IMAGE_CACHE', true);
2023-04-01 16:29:39 +00:00
// Database
define('DB_HOST', 'localhost');
define('DB_PORT', 3306);
define('DB_NAME', '');
2023-04-01 16:29:39 +00:00
define('DB_USERNAME', '');
define('DB_PASSWORD', '');
// Sphinx
define('SPHINX_HOST', '127.0.0.1');
define('SPHINX_PORT', 9306);
2023-04-01 16:29:39 +00:00
2023-04-08 21:06:28 +00:00
// Crawler settings
2023-04-01 16:29:39 +00:00
define('CRAWL_PAGE_LIMIT', 10);
define('CRAWL_PAGE_SECONDS_OFFSET', 3600);
2023-04-03 22:39:48 +00:00
define('CRAWL_URL_REGEXP', '/^.*$/ui'); // ipv6 only '/^http:\/\/\[[\w:]+\].*$/ui'
2023-04-03 00:07:54 +00:00
define('CRAWL_HOST_DEFAULT_PAGES_LIMIT', 1000);
define('CRAWL_HOST_DEFAULT_STATUS', true);
define('CRAWL_HOST_DEFAULT_META_ONLY', false);
/*
* Default robots.txt rules on remote file not exists
* The crawler able to overwrite these rules
*
* Presets
* yggdrasil: /database/yggdrasil/host.robots.md
*
*/
define('CRAWL_ROBOTS_DEFAULT_RULES', null); // string|null
/*
* Permanent rules that append to the robots.txt if exists else CRAWL_ROBOTS_DEFAULT_RULES
* The crawler does not overwrite these rules
*
* Presets
* yggdrasil: /database/yggdrasil/host.robotsPostfix.md
*
*/
2023-04-08 21:06:28 +00:00
define('CRAWL_ROBOTS_POSTFIX_RULES', null); // string|null
// Cleaner settings
define('CLEAN_HOST_LIMIT', 20);
define('CLEAN_HOST_SECONDS_OFFSET', 3600);