File tree Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -31,16 +31,13 @@ def create_app(settings: Optional[Settings] = None) -> FastAPI:
3131 #
3232 # Application
3333 #
34- upstream_urls = [
35- settings .upstream_url ,
36- settings .oidc_discovery_internal_url or settings .oidc_discovery_url ,
37- ]
34+ upstream_urls = (
35+ [settings .upstream_url , settings .oidc_discovery_internal_url ]
36+ if settings .wait_for_upstream
37+ else []
38+ )
3839 lifespan = LifespanManager (
39- on_startup = (
40- [ServerHealthCheck (url = url ) for url in upstream_urls ]
41- if settings .wait_for_upstream
42- else []
43- )
40+ on_startup = ([ServerHealthCheck (url = url ) for url in upstream_urls ])
4441 )
4542
4643 app = FastAPI (
@@ -90,7 +87,8 @@ def create_app(settings: Optional[Settings] = None) -> FastAPI:
9087 public_endpoints = settings .public_endpoints ,
9188 private_endpoints = settings .private_endpoints ,
9289 default_public = settings .default_public ,
93- oidc_config_url = settings .oidc_discovery_internal_url ,
90+ oidc_config_url = settings .oidc_discovery_url ,
91+ oidc_config_internal_url = settings .oidc_discovery_internal_url ,
9492 )
9593
9694 app .add_middleware (
You can’t perform that action at this time.
0 commit comments