-
Notifications
You must be signed in to change notification settings - Fork 0
/
server.php
43 lines (36 loc) · 901 Bytes
/
server.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?php
/**
*
* @author : 尤嘉兴
* @version: 2019/4/9 17:32
*/
require "../vendor/autoload.php";
require "server_app.php";
define('DS', DIRECTORY_SEPARATOR);
$baseDir = __DIR__ . '/';
$app = new App([
"apns" => [
'sslCert' => __DIR__ . "/aps_dis.pem",
'sslCertPwd' => "123456",
'caCert' => __DIR__ . "/cacert.pem",
'concurrentRequest' => 100,
'maxHostConn' => 1,
],
"logger" => [
"stdout" => true,
"stdout_level" => \Monolog\Logger::DEBUG,
"rotate" => true,
"rotate_max_files" => 7,
"level" => \Monolog\Logger::DEBUG,
"filename" => __DIR__ . "/logs/app.log",
"memory_usage" => true,
"memory_peak_usage" => true,
],
"redis" => [
"host" => "192.168.0.16",
"port" => 6379,
"db" => 0,
"queue_key" => "ApnsListIOS",
]
]);
$app->run();