2021-02-21 16:37:27 +00:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Configuration file
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* Service options */
|
|
|
|
$options = [
|
|
|
|
/* Database settings */
|
|
|
|
'db_host' => '127.0.0.1',
|
|
|
|
'db_user' => 'regi2p',
|
|
|
|
'db_pass' => 'pass',
|
|
|
|
'db_name' => 'user',
|
|
|
|
|
|
|
|
/* I2P settings */
|
|
|
|
'bob_host' => '127.0.0.1',
|
|
|
|
'bob_port' => '2827',
|
2023-05-02 18:16:10 +00:00
|
|
|
'bob_options' => 'inbound.quantity=3 outbound.quantity=3 inbound.length=1 outbound.length=1 i2cp.leaseSetType=3 i2cp.leaseSetEncType=4 i2cp.dontPublishLeaseSet=true',
|
2021-02-21 16:37:27 +00:00
|
|
|
'bob_nick' => 'hostchecker',
|
2022-06-06 17:57:49 +00:00
|
|
|
'check_tries' => 2, // lookup tries
|
|
|
|
'retry_delay' => 3, // delay in seconds between tries
|
2021-02-21 16:37:27 +00:00
|
|
|
'http_proxy' => 'tcp://127.0.0.1:4444', // this is HTTP proxy, which must be specified as tcp protocol because we using stream context
|
|
|
|
|
|
|
|
/* Service settings */
|
|
|
|
'approval' => true, // require approval (check host for availability before publishing)
|
|
|
|
'fetcher' => true, // enable external subscriptions fetcher
|
|
|
|
'tableitems' => 30, // records limit on alive, all, search pages
|
2023-08-09 23:21:53 +00:00
|
|
|
'desclength' => 120, // description length limit
|
2021-02-21 16:37:27 +00:00
|
|
|
|
|
|
|
/* Records processing options */
|
2021-06-27 16:05:27 +00:00
|
|
|
'approvedelay' => 24, // check host for availability before publishing for this time (hours)
|
|
|
|
'approveseen' => 3, // host must be seen lesser than this amount of hours for approving (hours)
|
2021-02-21 16:37:27 +00:00
|
|
|
|
2021-06-13 04:55:08 +00:00
|
|
|
'newdays' => 14, // assume host as new for that amout of days
|
2021-06-27 16:05:27 +00:00
|
|
|
'olddays' => 45, // assume host as approved if seen less than that amount of days, and stable if seen more than that amount of days
|
2021-02-21 16:37:27 +00:00
|
|
|
'delnewdays' => 3, // if new host not seen more than X days, disable it and disapprove
|
2021-06-27 16:05:27 +00:00
|
|
|
'delapprdays' => 45, // same as above, but for old hosts
|
|
|
|
'delstabdays' => 180, // same as above, but for old hosts
|
2021-06-13 04:55:08 +00:00
|
|
|
|
|
|
|
'hidedays' => 3, // days before domain will be marked as hidden in period before disabling
|
2021-04-22 13:15:11 +00:00
|
|
|
|
|
|
|
'fullhour' => 8, // make hosts full-check at that hour (0-23). Usage of out-of-range value or at other hours, checker will validate only enabled domains.
|
2022-08-28 19:32:52 +00:00
|
|
|
|
|
|
|
'checkthreads' => 64, // checker threads amount
|
2023-06-02 23:58:32 +00:00
|
|
|
|
|
|
|
'exportperiod' => 4, // lists update period in hours as configured in crontab, used only for fomatting home page
|
|
|
|
];
|
|
|
|
|
|
|
|
/* Twig template engine configuration */
|
|
|
|
$twigTplDir = __DIR__ . '/templates'; // templates directory
|
|
|
|
$twigMsgDir = __DIR__ . '/messages'; // translations directory
|
|
|
|
|
|
|
|
$twigConfig = [
|
|
|
|
'cache' => __DIR__ . '/cache',
|
|
|
|
'auto_reload' => true,
|
2021-02-21 16:37:27 +00:00
|
|
|
];
|