Add SSH host/login/password/key when creating VPN servers

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-07-25 21:23:12 +03:00
co-authored by Cursor
parent e8fb5ca00c
commit 088f02cdbe
7 changed files with 442 additions and 34 deletions
+6
View File
@@ -41,6 +41,12 @@ class VpnServer(Base):
dns: Mapped[str] = mapped_column(String(255), default="1.1.1.1")
server_private_key: Mapped[str] = mapped_column(Text)
server_public_key: Mapped[str] = mapped_column(Text)
# SSH access to the VPS
ssh_host: Mapped[str | None] = mapped_column(String(255), nullable=True)
ssh_port: Mapped[int] = mapped_column(Integer, default=22)
ssh_username: Mapped[str | None] = mapped_column(String(128), nullable=True)
ssh_password: Mapped[str | None] = mapped_column(Text, nullable=True)
ssh_private_key: Mapped[str | None] = mapped_column(Text, nullable=True)
# AmneziaWG 2.0 obfuscation params (ignored for plain WireGuard)
jc: Mapped[int | None] = mapped_column(Integer, nullable=True)
jmin: Mapped[int | None] = mapped_column(Integer, nullable=True)