env file setup

This commit is contained in:
Jörn-Michael Miehe 2023-11-09 12:58:36 +01:00
parent 02ba2c67a5
commit 2cf6936139
3 changed files with 3 additions and 1 deletions

1
api/.env Normal file
View file

@ -0,0 +1 @@
COMPOSE_PROJECT_NAME="advent22_api"

1
api/.gitignore vendored
View file

@ -152,3 +152,4 @@ cython_debug/
# option (not recommended) you can uncomment the following to ignore the entire idea folder. # option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/ #.idea/
api.conf

View file

@ -48,7 +48,7 @@ class Settings(BaseSettings):
""" """
model_config = SettingsConfigDict( model_config = SettingsConfigDict(
env_file=".env", env_file="api.conf",
env_file_encoding="utf-8", env_file_encoding="utf-8",
env_nested_delimiter="__", env_nested_delimiter="__",
) )