From d9552cbf42138a4d88fd668f1844dfd9b59ec66f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn-Michael=20Miehe?= <40151420+ldericher@users.noreply.github.com> Date: Wed, 30 Mar 2022 11:24:47 +0000 Subject: [PATCH] make some config parts optional --- api/kiwi_vpn_api/config.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/kiwi_vpn_api/config.py b/api/kiwi_vpn_api/config.py index e27cd8e..d35457f 100644 --- a/api/kiwi_vpn_api/config.py +++ b/api/kiwi_vpn_api/config.py @@ -227,8 +227,8 @@ class CryptoConfig(BaseModel): schemes: list[str] = ["bcrypt"] # pki settings - cert_algo: CertificateAlgo - expiry_days: int + cert_algo: CertificateAlgo | None + expiry_days: int | None @property def context(self) -> CryptContext: @@ -246,7 +246,7 @@ class Config(BaseModel): # common name for the server server_name: str # may include client-to-client, cipher etc. - openvpn_extra_options: dict[str, Any] + openvpn_extra_options: dict[str, Any] | None db: DBConfig jwt: JWTConfig