deployment fixes

This commit is contained in:
2026-05-04 16:03:39 +02:00
parent ee61007939
commit 26f6f3d41f
11 changed files with 34 additions and 30 deletions
@@ -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"}