Merge branch 'develop' into passwd
This commit is contained in:
commit
c3fc2c290c
3 changed files with 36 additions and 0 deletions
|
|
@ -12,6 +12,12 @@ class AppConfig(BaseModel):
|
|||
reload: bool = True
|
||||
|
||||
|
||||
class GitConfig(BaseModel):
|
||||
directory: str = "/opt/repo/sample"
|
||||
branch: str = "master"
|
||||
remote: str = "origin"
|
||||
|
||||
|
||||
class KeePassConfig(BaseModel):
|
||||
file: str = "database.kdbx"
|
||||
secret: Path | str = "/run/secrets/kp_secret"
|
||||
|
|
@ -20,6 +26,7 @@ class KeePassConfig(BaseModel):
|
|||
class Settings(BaseSettings):
|
||||
model_config = SettingsConfigDict(env_prefix="KARL_", env_nested_delimiter="__")
|
||||
app: AppConfig = AppConfig()
|
||||
git: GitConfig = GitConfig()
|
||||
kp: KeePassConfig = KeePassConfig()
|
||||
|
||||
@classmethod
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue