init
This commit is contained in:
30
config/autoload/services.php
Normal file
30
config/autoload/services.php
Normal file
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
use function Hyperf\Support\env;
|
||||
|
||||
return [
|
||||
'enable' => [
|
||||
'discovery' => true,
|
||||
'register' => true,
|
||||
],
|
||||
'consumers' => [],
|
||||
'providers' => [],
|
||||
'drivers' => [
|
||||
'nacos' => [
|
||||
// nacos server url like https://nacos.hyperf.io, Priority is higher than host:port
|
||||
// 'url' => '',
|
||||
// The nacos host info
|
||||
'host' => env('NACOS_HOST', '127.0.0.1'),
|
||||
'port' => env('NACOS_PORT', 8848),
|
||||
// The nacos account info
|
||||
'username' => null,
|
||||
'password' => null,
|
||||
'guzzle' => [
|
||||
'config' => null,
|
||||
],
|
||||
'group_name' => 'api',
|
||||
'namespace_id' => env('NACOS_NAMESPACE', 'dev'),
|
||||
'heartbeat' => 5,
|
||||
],
|
||||
],
|
||||
];
|
||||
Reference in New Issue
Block a user