nacos.php 694 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * This file is part of Hyperf.
  5. *
  6. * @link https://www.hyperf.io
  7. * @document https://hyperf.wiki
  8. * @contact group@hyperf.io
  9. * @license https://github.com/hyperf/hyperf/blob/master/LICENSE
  10. */
  11. return [
  12. // nacos server url like https://nacos.hyperf.io, Priority is higher than host:port
  13. // 'uri' => 'http://127.0.0.1:8848/',
  14. // The nacos host info
  15. 'host' => '127.0.0.1',
  16. 'port' => 8848,
  17. // The nacos account info
  18. 'username' => null,
  19. 'password' => null,
  20. 'guzzle' => [
  21. 'config' => null,
  22. ],
  23. // Only support for nacos v2.
  24. 'grpc' => [
  25. 'enable' => false,
  26. 'heartbeat' => 10,
  27. ],
  28. ];