fdsa
This commit is contained in:
+12
-10
@@ -1,16 +1,18 @@
|
||||
from dotenv import load_dotenv
|
||||
from pydantic_settings import BaseSettings
|
||||
from pydantic_settings import BaseSettings, SettingsConfigDict
|
||||
|
||||
|
||||
class Settings(BaseSettings):
|
||||
REDIS_HOST: str = "127.0.0.1"
|
||||
REDIS_PORT: int = 6379
|
||||
QUEUE_NAME: str = "arq:queue"
|
||||
|
||||
class Config:
|
||||
case_sensitive = True
|
||||
env_file = ".env"
|
||||
NATS_URL: str = "nats://10.1.1.1:4222"
|
||||
DURABLE: str = "berry"
|
||||
SUBJECT: str = "barker.print"
|
||||
STREAM: str = "barker_print_stream"
|
||||
ADDRESS: str = "/printer"
|
||||
DEBUG: bool = False
|
||||
model_config = SettingsConfigDict(
|
||||
case_sensitive=True,
|
||||
env_file=".env",
|
||||
extra="ignore",
|
||||
)
|
||||
|
||||
|
||||
load_dotenv()
|
||||
settings = Settings()
|
||||
|
||||
Reference in New Issue
Block a user