2026-01-26 11:15:52 -05:00

48 lines
955 B
YAML

# ====================================
# Kratos Admin API Routes
# ====================================
# Admin API for auth.example.com
- id: "kratos:admin:auth"
version: "v0.40.0"
upstream:
url: "http://kratos:4434"
preserve_host: false
match:
url: "https://auth.example.com/admin/<**>"
methods:
- GET
- POST
- PUT
- PATCH
- DELETE
authenticators:
- handler: cookie_session
authorizer:
handler: allow
mutators:
- handler: header
errors:
- handler: json
# Admin API for localhost
- id: "kratos:admin:localhost"
version: "v0.40.0"
upstream:
url: "http://kratos:4434"
preserve_host: false
match:
url: "http://10.10.10.51:4455/admin/<**>"
methods:
- GET
- POST
- PUT
- PATCH
- DELETE
authenticators:
- handler: cookie_session
authorizer:
handler: allow
mutators:
- handler: header
errors:
- handler: json