Skip to content

Deploying using nginx ingress results in 404 for /browser #593

Description

@spwoodcock

Background

Goals

  • Allow viewing /browser with nginx ingress and the default eoAPI chart.

Possible solution

Mirror the Traefik behaviour, where the browser is excluded from strip-prefix and gets its own redirect middleware.

Two changes in templates/networking/ingress.yaml:

  1. Honour skipStripPrefix in the nginx path helper as the Traefik template already does, so the browser renders as pathType: Prefix, path: /browser.

  2. Render that path in a separate {{ .Release.Name }}-browser-ingress without rewrite-target / use-regex. Those are Ingress-scoped, so in the shared resource /browser is still rewritten to / (empty $2) even without the regex.

I would understand if this won't be accepted, as nginx ingress is deprecated. We should probably be targeting the Gateway API for future changes instead.

I'm happy to PR for this otherwise 👍

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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