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 3903e89 commit cd64125Copy full SHA for cd64125
src/stac_auth_proxy/app.py
@@ -63,6 +63,13 @@ def create_app(settings: Optional[Settings] = None) -> FastAPI:
63
methods=methods,
64
)
65
66
+ if settings.debug:
67
+ app.add_api_route(
68
+ "/_debug",
69
+ lambda: {"settings": settings},
70
+ methods=["GET"],
71
+ )
72
+
73
# Catchall for remainder of the endpoints
74
app.add_api_route(
75
"/{path:path}",
src/stac_auth_proxy/config.py
@@ -28,6 +28,8 @@ def __call__(self, token_dependency):
28
class Settings(BaseSettings):
29
"""Configuration settings for the STAC Auth Proxy."""
30
31
+ debug: bool = False
32
33
upstream_url: HttpUrl = HttpUrl(url="https://earth-search.aws.element84.com/v1")
34
oidc_discovery_url: HttpUrl
35
0 commit comments