deployment fixes
This commit is contained in:
@@ -55,9 +55,8 @@ class Settings(BaseSettings):
|
||||
ssh_host: str = ""
|
||||
ssh_username: str = ""
|
||||
ssh_port: int = 22
|
||||
ssh_key_directory: str = str(Path.home() / ".ssh")
|
||||
ssh_key_name: str = "id_rsa"
|
||||
ssh_key_filename: str = "" # legacy direct override (full path)
|
||||
ssh_key_directory: str = ""
|
||||
ssh_key_name: str = ""
|
||||
ssh_password: str = ""
|
||||
|
||||
# Remote paths
|
||||
@@ -75,8 +74,8 @@ class Settings(BaseSettings):
|
||||
|
||||
@property
|
||||
def ssh_key_path(self) -> str:
|
||||
if self.ssh_key_filename:
|
||||
return self.ssh_key_filename
|
||||
if not self.ssh_key_directory or not self.ssh_key_name:
|
||||
return ""
|
||||
return str(Path(self.ssh_key_directory) / self.ssh_key_name)
|
||||
|
||||
model_config = {"env_file": ".env", "env_file_encoding": "utf-8", "extra": "ignore"}
|
||||
|
||||
Reference in New Issue
Block a user