Skip to content

Support operating without upstream URL #100

@alukach

Description

@alukach

If someone runs the stac auth proxy in a non-proxy mode (e.g. using configure_app()), we should allow the user to omit the upstream URL.

This would require updating the following middleware and handler:

if settings.root_path or settings.upstream_url.path != "/":
app.add_middleware(
ProcessLinksMiddleware,
upstream_url=str(settings.upstream_url),
root_path=settings.root_path,
)

if settings.healthz_prefix:
app.include_router(
HealthzHandler(upstream_url=str(settings.upstream_url)).router,
prefix=settings.healthz_prefix,
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions