We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a920d07 commit d49ad62Copy full SHA for d49ad62
1 file changed
src/core/config/setting.py
@@ -1,6 +1,6 @@
1
from functools import lru_cache
2
3
-from pydantic_settings import BaseSettings
+from pydantic_settings import BaseSettings, SettingsConfigDict
4
5
6
class Settings(BaseSettings):
@@ -13,8 +13,11 @@ class Settings(BaseSettings):
13
REFRESH_TOKEN_EXPIRE_MINUTES: int = 10080
14
RATE_LIMIT: str = "100/minute"
15
16
- class Config:
17
- env_file = ".env"
+ model_config = SettingsConfigDict(
+ env_file=".env",
18
+ env_file_encoding="utf-8",
19
+ extra="ignore",
20
+ )
21
22
23
@lru_cache
0 commit comments