[feat] setup master from fork with fastapi + otel
This commit is contained in:
parent
597eae9b97
commit
1fbf77f879
8 changed files with 310 additions and 1 deletions
16
docs/002-config-yaml-plus-env.md
Normal file
16
docs/002-config-yaml-plus-env.md
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
# 002 Config From YAML and Env
|
||||
|
||||
Context
|
||||
- The service needs readable project configuration and safe handling of sensitive values.
|
||||
- The final configuration object should be easy to inject and test.
|
||||
|
||||
Decision
|
||||
- Keep non-sensitive defaults in YAML files under `config/`.
|
||||
- Read sensitive values only from environment variables.
|
||||
- Merge YAML and env sources into one `AppConfig` dataclass tree in `adapter/config/`.
|
||||
- Keep configuration parsing and validation outside `domain/` and `usecase/`.
|
||||
|
||||
Consequences
|
||||
- Local configuration remains simple to inspect and version.
|
||||
- Secrets stay out of committed files.
|
||||
- Inner layers depend on typed config data, not on env or YAML readers.
|
||||
Loading…
Add table
Add a link
Reference in a new issue