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