I'm trying to work with swagger based apps with Traefik ingress. And I faced with problem of traffic routing. Right now my config is pretty simple and exposing swagger Ui
app.site.us/api/reference however don't display API endpoint
app.site.us/api/reference/list, I tried to play with regex
PathPrefix - but still not success.
spec: entryPoints: - web routes: - match: Host(`app.site.us`) && PathPrefix(`/api/reference`) kind: Rule priority: 12 middlewares: - name: tt namespace: default services: - name: app port: 3000 weight: 1 passHostHeader: true
# Strip prefix /foobar and /fiibar apiVersion: traefik.containo.us/v1alpha1 kind: Middleware metadata: name: tt spec: stripPrefix: prefixes: - /api/reference