46 lines
813 B
Python
46 lines
813 B
Python
from dataclasses import dataclass
|
|
from datetime import datetime
|
|
from pathlib import Path
|
|
|
|
@dataclass
|
|
class CertInfo:
|
|
domain_name: str
|
|
fingerprint: str
|
|
expires_at: datetime
|
|
path_to_key: Path
|
|
dir_caddy_cert: Path
|
|
|
|
|
|
@dataclass
|
|
class DSMInfo:
|
|
certificate_name: str
|
|
private_key_path: Path
|
|
certificate_pem_path: Path
|
|
path_inter_pem_chain: Path
|
|
dsm_id_cert: str
|
|
|
|
|
|
@dataclass
|
|
class DSMAuthInfo:
|
|
sid: str
|
|
token: str
|
|
|
|
@dataclass
|
|
class DSMCredentials:
|
|
user_name: str
|
|
password: str
|
|
|
|
@dataclass
|
|
class ApplSettings:
|
|
list_domains: list[str]
|
|
credentials : Path
|
|
path_to_caddy_cert: Path
|
|
path_to_save_folder: Path
|
|
nas_url: str
|
|
path_to_remote_ssh_cert: Path
|
|
path_to_copy_ssh_cert : Path
|
|
ssh_host: str
|
|
is_load_cert_from_ssh : bool = False
|
|
|
|
|