Skip to content

Commit 7836434

Browse files
committed
chore: use SettingsConfigDict
1 parent b7f48f1 commit 7836434

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/stac_auth_proxy/config.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from typing import Optional, TypeAlias
44

55
from pydantic.networks import HttpUrl
6-
from pydantic_settings import BaseSettings
6+
from pydantic_settings import BaseSettings, SettingsConfigDict
77

88
EndpointMethods: TypeAlias = dict[str, list[str]]
99

@@ -29,7 +29,4 @@ class Settings(BaseSettings):
2929
public_endpoints: EndpointMethods = {"/api.html": ["GET"]}
3030
openapi_spec_endpoint: Optional[str] = None
3131

32-
class Config:
33-
"""Pydantic configuration."""
34-
35-
env_prefix = "STAC_AUTH_PROXY_"
32+
model_config = SettingsConfigDict(env_prefix="STAC_AUTH_PROXY_")

0 commit comments

Comments
 (0)