php-json-rpc/config/rpc.php

46 lines
1.1 KiB
PHP
Raw Normal View History

2019-01-23 08:33:19 +00:00
<?php
return [
/**
* app name
*/
'app' => env('APP_NAME'),
2019-01-23 08:45:16 +00:00
//rpc日志路径
'log_path' => storage_path('logs/rpc.log'),
//rpc日志格式
'log_formatter' => JsonRpc\Logging\LogstashFormatter::class,
2019-01-23 08:33:19 +00:00
/**
* json rpc server 配置
*/
'server' => [
'name' => env('APP_NAME'),
'map' => base_path('app/Rpc/method.php'), //rpc注册文件
],
/**
* json rpc client 配置
*/
'client' => [
'auth' => [
'local' => true,
'base_uri' => env('RPC_AUTH_URI','http://auth.dev.haowumc.com'),
],
'erp' => [
'local' => true,
'base_uri' => env('RPC_ERP_URI','http://erp.dev.haowumc.com'),
],
'crm' => [
'local' => true,
'base_uri' => env('RPC_CRM_URI','http://crm.dev.haowumc.com'),
],
'api' => [
'local' => true,
2019-01-24 06:11:50 +00:00
'base_uri' => env('RPC_API_URI','http://sapi.dev.haowumc.com'),
2019-01-23 08:33:19 +00:00
],
'op' => [
'local' => true,
'base_uri' => env('RPC_OP_URI','http://op.dev.haowumc.com'),
],
],
];