Skip to content

Commit

Permalink
Revert change to settings
Browse files Browse the repository at this point in the history
  • Loading branch information
abarciauskas-bgse committed May 24, 2024
1 parent 6ec6ad4 commit 79bcd7b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
3 changes: 1 addition & 2 deletions titiler/stacapi/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@
"""

from typing import Dict, List, Optional, TypedDict, Union
from typing import List, Optional

from geojson_pydantic import Feature, Point
from pydantic import BaseModel, Field
from typing_extensions import Annotated

Expand Down
8 changes: 4 additions & 4 deletions titiler/stacapi/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class RetrySettings(BaseSettings):
retry_factor: Annotated[float, Field(ge=0.0)] = 0.0

model_config = {
"env_prefix": "TITILER_STACAPI_RETRY_",
"env_prefix": "TITILER_STACAPI_API_",
"env_file": ".env",
"extra": "ignore",
}
Expand All @@ -79,19 +79,19 @@ class STACAPISettings(BaseSettings):
stac_api_url: str = "https://planetarycomputer.microsoft.com/api/stac/v1"

model_config = {
"env_prefix": "TITILER_STACAPI_STACAPI_",
"env_prefix": "TITILER_STACAPI_",
"env_file": ".env",
"extra": "ignore",
}


class STACSettings(BaseSettings):
"""STAC model settings"""
"""STAC API settings"""

alternate_url: Optional[str] = None

model_config = {
"env_prefix": "TITILER_STACAPI_STAC_",
"env_prefix": "TITILER_STACAPI_",
"env_file": ".env",
"extra": "ignore",
}

0 comments on commit 79bcd7b

Please sign in to comment.