mirror of
https://github.com/getnamingo/registry.git
synced 2025-08-04 08:41:50 +02:00
Small EPP config updates
This commit is contained in:
parent
7594a7dfdb
commit
11c158be04
1 changed files with 8 additions and 0 deletions
|
@ -18,12 +18,20 @@ $dsn = "mysql:host={$c['mysql_host']};dbname={$c['mysql_database']};port={$c['my
|
|||
$db = new PDO($dsn, $c['mysql_username'], $c['mysql_password']);
|
||||
$db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
|
||||
|
||||
Swoole\Runtime::enableCoroutine();
|
||||
$server = new Server($c['epp_host'], $c['epp_port']);
|
||||
$server->set([
|
||||
'enable_coroutine' => true,
|
||||
'log_file' => '/var/log/epp/epp.log',
|
||||
'log_level' => SWOOLE_LOG_INFO,
|
||||
'worker_num' => swoole_cpu_num() * 4,
|
||||
'pid_file' => $c['epp_pid'],
|
||||
'tcp_user_timeout' => 10,
|
||||
'max_request' => 1000,
|
||||
'open_tcp_nodelay' => true,
|
||||
'max_conn' => 10000,
|
||||
'heartbeat_check_interval' => 60,
|
||||
'heartbeat_idle_time' => 120,
|
||||
'open_ssl' => true,
|
||||
'ssl_cert_file' => $c['ssl_cert'],
|
||||
'ssl_key_file' => $c['ssl_key'],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue