How to configure laravel-scout-elastic es x-pack after setting password

  1. use Aliyun ElasticSearch service with Xmurpack. Access requires a password. How do you configure hosts? with a password for laravel-scout-elastic?
  2. configuration files that do not require a password are as follows

    "elasticsearch" => [
         "index" => env("ELASTICSEARCH_INDEX", "20"),
         "hosts" => [
             env("ELASTICSEARCH_HOST", "http://192.168.10.66:9200"),
         ],
     ],
Jun.28,2021

http://username:password@host:port

Menu