Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions core/elasticsearch.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,33 @@ api_platform:
#...
```

#### SSL Configuration

When connecting to Elasticsearch over HTTPS with self-signed certificates or custom Certificate Authorities, you can configure SSL verification.

**With a custom CA bundle:**

```yaml
# config/packages/api_platform.yaml
api_platform:
elasticsearch:
hosts: ['%env(ELASTICSEARCH_HOST)%']
ssl_ca_bundle: '/path/to/ca-bundle.crt'
```

**Disable SSL verification (dev/test only):**

```yaml
# config/packages/api_platform.yaml
api_platform:
elasticsearch:
hosts: ['%env(ELASTICSEARCH_HOST)%']
ssl_verification: false # Never use in production
```

> [!NOTE]
> You cannot use both options together.

### Enabling Reading Support using Laravel

```php
Expand Down