Skip to content

Unable to make UI works in K8s cluster with internal redirections #2195

@AlexGacon

Description

@AlexGacon

Hello there,

We would like to use the new web UI on our Martin instance but we don't manage to have it working correctly.

Our Martin instance is hosted on a Kubernetes cluster which uses Traefik for ingress. The main enter point for our setup points to a backend written with FastAPI which also routes requests to other components, including Martin.

A request to the root of the martin server reaches martin but the returned HTML contains links to assets which are relative to the root of martin but not to the URL exposed to the end users.

The URL looks like https://mywonderfuldomain/api/martin/, which is intercepted by our FastAPI backend which then do another request to martin inside our cluster.

I hope this is clear enough.

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