File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments