fix proxy.md (#837)
* fix proxy.md Signed-off-by: jiangying <krivergo3@gmail.com> * Update proxy.md Signed-off-by: jiangying <krivergo3@gmail.com> --------- Signed-off-by: jiangying <krivergo3@gmail.com>
This commit is contained in:
+4
-3
@@ -10,9 +10,10 @@
|
||||
from opensearchpy import OpenSearch, RequestsHttpConnection
|
||||
|
||||
OpenSearch(
|
||||
hosts=["htps://..."],
|
||||
hosts=["https://..."],
|
||||
use_ssl=True,
|
||||
verify_certs=True,
|
||||
connection_class=RequestsHttpConnection,
|
||||
trust_env=True,
|
||||
)
|
||||
```
|
||||
@@ -23,10 +24,10 @@ OpenSearch(
|
||||
from opensearchpy import AsyncOpenSearch, AIOHttpConnection
|
||||
|
||||
client = AsyncOpenSearch(
|
||||
hosts=["htps://..."],
|
||||
hosts=["https://..."],
|
||||
use_ssl=True,
|
||||
verify_certs=True,
|
||||
connection_class=AIOHttpConnection,
|
||||
trust_env=True,
|
||||
)
|
||||
```
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user