Run container with uvicorn, move templates for packaging, add systemd config for container deployment, add OIDC_TEST_SETTINGS_FILE env var for setting, misc fixes
This commit is contained in:
parent
170e663ee8
commit
57681d91fe
12 changed files with 146 additions and 49 deletions
src/oidc_test
|
@ -1,6 +1,8 @@
|
|||
from os import environ
|
||||
import string
|
||||
import random
|
||||
from typing import Type, Tuple
|
||||
from pathlib import Path
|
||||
|
||||
from pydantic import BaseModel, computed_field
|
||||
from pydantic_settings import (
|
||||
|
@ -56,7 +58,16 @@ class Settings(BaseSettings):
|
|||
init_settings,
|
||||
env_settings,
|
||||
file_secret_settings,
|
||||
YamlConfigSettingsSource(settings_cls, "settings.yaml"),
|
||||
YamlConfigSettingsSource(
|
||||
settings_cls,
|
||||
Path(
|
||||
Path(
|
||||
environ.get(
|
||||
"OIDC_TEST_SETTINGS_FILE", Path.cwd() / "settings.yaml"
|
||||
),
|
||||
)
|
||||
),
|
||||
),
|
||||
dotenv_settings,
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue