From d06b842702ec4aa2f5eb35a3ade4bada5254d3c1 Mon Sep 17 00:00:00 2001 From: Pinga <121483313+getpinga@users.noreply.github.com> Date: Fri, 11 Aug 2023 01:00:52 +0300 Subject: [PATCH] And now a small rdap feature added --- rdap/rdap.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/rdap/rdap.php b/rdap/rdap.php index 3639e96..ddc4da6 100644 --- a/rdap/rdap.php +++ b/rdap/rdap.php @@ -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) {