2019-01-24 11:18:42 +08:00
|
|
|
|
<?php
|
2019-01-25 10:44:02 +08:00
|
|
|
|
define('SERVER_ADDRESS', '172.18.176.189');//服务注册地址,需为内网IP地址
|
2019-01-24 11:18:42 +08:00
|
|
|
|
define('SERVER_PORT', '2346');//服务注册端口
|
|
|
|
|
define('CLIENT_PORT', '2345');//客户端监听端口
|
2019-01-25 10:44:02 +08:00
|
|
|
|
|
|
|
|
|
//ssl配置 请使用绝对路径。不开启可以不用关注
|
|
|
|
|
define('USE_SSL', true);//是否使用ssl
|
|
|
|
|
define('LOCAL_CERT', '/www/wwwroot/EasyProjectApi/server.pem');// 证书路径也可以是crt文件
|
|
|
|
|
define('LOCAL_PK', '/www/wwwroot/EasyProjectApi/server.key');
|
|
|
|
|
define('VERIFY_PEER', false);
|
|
|
|
|
define('ALLOW_SELF_SIGNED', true);//如果是自签名证书需要开启此选项
|