From 51ad4fbc2c4d1d27343fe4f228ef9f254e4cc265 Mon Sep 17 00:00:00 2001 From: TekH Date: Tue, 3 Feb 2026 10:39:33 +0100 Subject: [PATCH] Add YARP reverse proxy route for auth login requests Configured yarp.json to proxy POST /api/auth requests to the auth-hub cluster at http://172.24.12.39:9090, rewriting the path to /api/auth/sign-flow before forwarding. --- EnvelopeGenerator.API/yarp.json | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 EnvelopeGenerator.API/yarp.json diff --git a/EnvelopeGenerator.API/yarp.json b/EnvelopeGenerator.API/yarp.json new file mode 100644 index 00000000..dc38a955 --- /dev/null +++ b/EnvelopeGenerator.API/yarp.json @@ -0,0 +1,25 @@ +{ + "ReverseProxy": { + "Routes": { + "auth-login": { + "ClusterId": "auth-hub", + "Match": { + "Path": "/api/auth", + "Methods": [ "POST" ] + }, + "Transforms": [ + { "PathSet": "/api/auth/sign-flow" } + ] + } + }, + "Clusters": { + "auth-hub": { + "Destinations": { + "primary": { + "Address": "http://172.24.12.39:9090" + } + } + } + } + } +}