mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-08-02 08:44:44 +00:00
Adding TLS support one-way
This commit is contained in:
parent
4597145011
commit
2c682b086a
1 changed files with 8 additions and 3 deletions
|
@ -16,7 +16,12 @@ class MilvusVectorIOConfig(BaseModel):
|
||||||
uri: str
|
uri: str
|
||||||
token: str | None = None
|
token: str | None = None
|
||||||
consistency_level: str = "Strong"
|
consistency_level: str = "Strong"
|
||||||
|
# TLS-related options
|
||||||
|
secure: bool = False
|
||||||
|
server_pem_path: Optional[str] = None
|
||||||
@classmethod
|
@classmethod
|
||||||
def sample_run_config(cls, __distro_dir__: str, **kwargs: Any) -> dict[str, Any]:
|
|
||||||
return {"uri": "${env.MILVUS_ENDPOINT}", "token": "${env.MILVUS_TOKEN}"}
|
def sample_run_config(cls, __distro_dir__: str, **kwargs: Any) -> Dict[str, Any]:
|
||||||
|
return {"uri": "${env.MILVUS_ENDPOINT}", "token": "${env.MILVUS_TOKEN}","secure": True,
|
||||||
|
"server_pem_path": "/path/to/ca.crt"}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue