Files
hyperf_data/config/autoload/services.php
Aether 861b30ea00 ..
2025-10-11 17:22:33 +08:00

34 lines
899 B
PHP

<?php
declare(strict_types=1);
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' => env('NACOS_GROUP', 'dev'),
'namespace_id' => env('NACOS_NAMESPACE_ID', 'namespace_id'),
'heartbeat' => 5,
'ephemeral' => true,
],
],
];