Skip to content

Commit

Permalink
Add Basic Auth.
Browse files Browse the repository at this point in the history
  • Loading branch information
bastienuh committed Jun 15, 2022
1 parent ae7091c commit 26c4fc1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/ExplorerServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,13 @@ public function boot(): void
);
}

if(config()->has('explorer.connection.auth')) {
$client->setBasicAuthentication(
config('explorer.connection.auth.username'),
config('explorer.connection.auth.password')
);
}

return new ElasticClientFactory($client->build());
});

Expand Down

0 comments on commit 26c4fc1

Please sign in to comment.