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