Domain registry project http://reg.i2p/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

56 lines
2.5 KiB

<?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',
'bob_options' => 'inbound.quantity=3 outbound.quantity=3 inbound.length=1 outbound.length=1 i2cp.leaseSetType=3 i2cp.leaseSetEncType=4 i2cp.dontPublishLeaseSet=true',
'bob_nick' => 'hostchecker',
'check_tries' => 2, // lookup tries
'retry_delay' => 3, // delay in seconds between tries
'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
'desclength' => 120, // description length limit
/* Records processing options */
'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)
'newdays' => 14, // assume host as new for that amout of days
'olddays' => 45, // assume host as approved if seen less than that amount of days, and stable if seen more than that amount of days
'delnewdays' => 3, // if new host not seen more than X days, disable it and disapprove
'delapprdays' => 45, // same as above, but for old hosts
'delstabdays' => 180, // same as above, but for old hosts
'hidedays' => 3, // days before domain will be marked as hidden in period before disabling
'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.
'checkthreads' => 64, // checker threads amount
'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,
];