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 9e404bc commit d164646Copy full SHA for d164646
src/stac_auth_proxy/app.py
@@ -31,16 +31,13 @@ def create_app(settings: Optional[Settings] = None) -> FastAPI:
31
#
32
# Application
33
34
- upstream_urls = [
35
- settings.upstream_url,
36
- settings.oidc_discovery_internal_url or settings.oidc_discovery_url,
37
- ]
+ upstream_urls = (
+ [settings.upstream_url, settings.oidc_discovery_internal_url]
+ if settings.wait_for_upstream
+ else []
38
+ )
39
lifespan = LifespanManager(
- on_startup=(
40
- [ServerHealthCheck(url=url) for url in upstream_urls]
41
- if settings.wait_for_upstream
42
- else []
43
- )
+ on_startup=([ServerHealthCheck(url=url) for url in upstream_urls])
44
)
45
46
app = FastAPI(
0 commit comments