From e39cd1fd5c8038b58db28ecd94667721d6117fa0 Mon Sep 17 00:00:00 2001 From: William Phetsinorath Date: Wed, 7 Oct 2026 11:41:10 +0200 Subject: [PATCH] feat(nginx-strangler): route /api/v1/admin/roles to server-nestjs Design: adds the /api/v1/admin/roles location to the migrated-routes block, ahead of the general /api/v1/admin fallback, so role reads and mutations reach the NestJS admin-role module whose member-counts implementation is contract-valid (unlike the frozen legacy handler, see #2781). Resolution carries main's concurrent /api/v1/auth migration verbatim; both blocks kept. Refs #2781 Co-authored-by: Automata Signed-off-by: William Phetsinorath Change-Id: I9cd3971dbaa619a997c1fe08d2a3438e6a6a6964 --- apps/nginx-strangler/conf.d/routing.conf | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/apps/nginx-strangler/conf.d/routing.conf b/apps/nginx-strangler/conf.d/routing.conf index 02cb634b73..e39e703431 100644 --- a/apps/nginx-strangler/conf.d/routing.conf +++ b/apps/nginx-strangler/conf.d/routing.conf @@ -61,6 +61,15 @@ server { } # ── Routes migrées vers NestJS ──────────────────────────────────────────────── + location /api/v1/admin/roles { + proxy_pass http://server-nestjs; + proxy_http_version 1.1; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; + } + location = /api/v1/auth { proxy_pass http://server-nestjs; proxy_http_version 1.1;