Files

14 lines
349 B
YAML

# Shared by dev-admin and dev-public: /api/a -> /a, /api/admin/b -> /admin/b,
# /m/main.css -> /main.css. Only the first matching prefix is stripped, and
# none of these routes can match both.
apiVersion: traefik.io/v1alpha1
kind: Middleware
metadata:
name: strip-prefix
namespace: dev
spec:
stripPrefix:
prefixes:
- /api
- /m