Skip to content

Commit bdc94db

Browse files
committed
docs(elasticsearch): add SSL configuration options for Elasticsearch
1 parent 40ae38e commit bdc94db

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

core/elasticsearch.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,32 @@ api_platform:
4747
#...
4848
```
4949

50+
#### SSL Configuration
51+
52+
When connecting to Elasticsearch over HTTPS with self-signed certificates or custom Certificate Authorities, you can configure SSL verification.
53+
54+
**With a custom CA bundle:**
55+
56+
```yaml
57+
# config/packages/api_platform.yaml
58+
api_platform:
59+
elasticsearch:
60+
hosts: ['%env(ELASTICSEARCH_HOST)%']
61+
ssl_ca_bundle: '/path/to/ca-bundle.crt'
62+
```
63+
64+
**Disable SSL verification (dev/test only):**
65+
66+
```yaml
67+
# config/packages/api_platform.yaml
68+
api_platform:
69+
elasticsearch:
70+
hosts: ['%env(ELASTICSEARCH_HOST)%']
71+
ssl_verification: false # Never use in production
72+
```
73+
74+
**Note:** You cannot use both options together.
75+
5076
### Enabling Reading Support using Laravel
5177
5278
```php

0 commit comments

Comments
 (0)