And now a small rdap feature added

This commit is contained in:
Pinga 2023-08-11 01:00:52 +03:00
parent 8d63b93d1f
commit d06b842702

View file

@ -33,6 +33,13 @@ function mapContactToVCard($contactDetails, $role) {
// Create a Swoole HTTP server
$http = new Swoole\Http\Server('0.0.0.0', 7500);
$http->set([
'daemonize' => false,
'log_file' => '/var/log/rdap/rdap.log',
'log_level' => SWOOLE_LOG_INFO,
'worker_num' => swoole_cpu_num() * 2,
'pid_file' => '/var/log/rdap/rdap.pid'
]);
// Register a callback to handle incoming requests
$http->on('request', function ($request, $response) {