make some config parts optional
This commit is contained in:
parent
24721dd342
commit
d9552cbf42
1 changed files with 3 additions and 3 deletions
|
@ -227,8 +227,8 @@ class CryptoConfig(BaseModel):
|
||||||
schemes: list[str] = ["bcrypt"]
|
schemes: list[str] = ["bcrypt"]
|
||||||
|
|
||||||
# pki settings
|
# pki settings
|
||||||
cert_algo: CertificateAlgo
|
cert_algo: CertificateAlgo | None
|
||||||
expiry_days: int
|
expiry_days: int | None
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def context(self) -> CryptContext:
|
def context(self) -> CryptContext:
|
||||||
|
@ -246,7 +246,7 @@ class Config(BaseModel):
|
||||||
# common name for the server
|
# common name for the server
|
||||||
server_name: str
|
server_name: str
|
||||||
# may include client-to-client, cipher etc.
|
# may include client-to-client, cipher etc.
|
||||||
openvpn_extra_options: dict[str, Any]
|
openvpn_extra_options: dict[str, Any] | None
|
||||||
|
|
||||||
db: DBConfig
|
db: DBConfig
|
||||||
jwt: JWTConfig
|
jwt: JWTConfig
|
||||||
|
|
Loading…
Reference in a new issue