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 b7f48f1 commit 7836434Copy full SHA for 7836434
src/stac_auth_proxy/config.py
@@ -3,7 +3,7 @@
3
from typing import Optional, TypeAlias
4
5
from pydantic.networks import HttpUrl
6
-from pydantic_settings import BaseSettings
+from pydantic_settings import BaseSettings, SettingsConfigDict
7
8
EndpointMethods: TypeAlias = dict[str, list[str]]
9
@@ -29,7 +29,4 @@ class Settings(BaseSettings):
29
public_endpoints: EndpointMethods = {"/api.html": ["GET"]}
30
openapi_spec_endpoint: Optional[str] = None
31
32
- class Config:
33
- """Pydantic configuration."""
34
-
35
- env_prefix = "STAC_AUTH_PROXY_"
+ model_config = SettingsConfigDict(env_prefix="STAC_AUTH_PROXY_")
0 commit comments