15 lines
519 B
Python
15 lines
519 B
Python
from pydantic_settings import BaseSettings, SettingsConfigDict
|
|||
|
|
|
||
|
|
|
||
|
|
class Settings(BaseSettings):
|
||
|
|
model_config = SettingsConfigDict(env_file=".env", extra="ignore")
|
||
|
|
|
||
|
|
database_url: str = "postgresql+psycopg://ipam:ipam@localhost:55432/ipam"
|
||
|
|
jwt_secret: str = "dev-only-secret"
|
||
|
|
jwt_ttl_minutes: int = 480
|
||
|
|
admin_username: str = "admin"
|
||
|
|
admin_password: str = ""
|
||
|
|
trusted_proxies: str = "" # CIDR через запятую: от них принимается X-Forwarded-For
|
||
|
|
|
||
|
|
|
||
|
|
settings = Settings()
|