mirror of
https://github.com/getnamingo/registry.git
synced 2025-06-25 21:54:46 +02:00
And now a small rdap feature added
This commit is contained in:
parent
8d63b93d1f
commit
d06b842702
1 changed files with 7 additions and 0 deletions
|
@ -33,6 +33,13 @@ function mapContactToVCard($contactDetails, $role) {
|
||||||
|
|
||||||
// Create a Swoole HTTP server
|
// Create a Swoole HTTP server
|
||||||
$http = new Swoole\Http\Server('0.0.0.0', 7500);
|
$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
|
// Register a callback to handle incoming requests
|
||||||
$http->on('request', function ($request, $response) {
|
$http->on('request', function ($request, $response) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue