jolicode / jolicode/elastically

How to configure Basic Auth with Symfony

Open
#201 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
257
Forks
43
Avg merge
38m
Merged PRs (30d)
1

Description

Hi,

I couldn't find it in the documentation, but what would be the prefered way to configure basic auth for the elastic search endpoint when using the Symfony configuration?

Currently I'm using the provided example mainly:
```yaml
elastically:
connections:
# You can create multiple clients
default:
# Any Elastica option works here
client:
hosts:
- 'es.example.com'

# Path to the mapping directory (in YAML)
mapping_directory: '%kernel.project_dir%/config/elasticsearch'

# Size of the bulk sent to Elasticsearch (default to 100)
bulk_size: 100

# If you want to add a prefix for your index in elasticsearch (you can still call it by its base name everywhere!)
prefix: '%kernel.environment%'

# Use HttpClient component
transport_config:
http_client: 'Psr\Http\Client\ClientInterface'
```

But I'm unsure as to where to configure the username and password

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.