dev.aggtaa.com/api/admin path auth, prefix stip

This commit is contained in:
azykov@mail.ru
2026-09-29 13:17:55 +03:00
parent 954a0b4000
commit 1af1a3527d
3 changed files with 59 additions and 9 deletions
+13
View File
@@ -0,0 +1,13 @@
# 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