Skip to content

Commit

Permalink
chore: use SettingsConfigDict
Browse files Browse the repository at this point in the history
  • Loading branch information
alukach committed Dec 1, 2024
1 parent b7f48f1 commit 7836434
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/stac_auth_proxy/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from typing import Optional, TypeAlias

from pydantic.networks import HttpUrl
from pydantic_settings import BaseSettings
from pydantic_settings import BaseSettings, SettingsConfigDict

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

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

class Config:
"""Pydantic configuration."""

env_prefix = "STAC_AUTH_PROXY_"
model_config = SettingsConfigDict(env_prefix="STAC_AUTH_PROXY_")

0 comments on commit 7836434

Please sign in to comment.