From 56f08857dbcefccf37057ec3626f254458249d9b Mon Sep 17 00:00:00 2001 From: Ho Ngoc Hai Date: Tue, 13 Jan 2026 21:32:36 +0700 Subject: [PATCH] feat(traefik): Add Storage Service routing and update IAM service URL - Introduced routing for the Storage Service with rules for file management endpoints. - Updated IAM service base URL to "http://iam-service-net:8080" for consistency. - Configured load balancer for the Storage Service to enhance file management capabilities. --- infra/traefik/dynamic/routes.yml | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/infra/traefik/dynamic/routes.yml b/infra/traefik/dynamic/routes.yml index 76b956b0..d917e651 100644 --- a/infra/traefik/dynamic/routes.yml +++ b/infra/traefik/dynamic/routes.yml @@ -40,11 +40,23 @@ http: entryPoints: - web + # EN: Storage Service - File Management + # VI: Storage Service - Quản lý File + storage-service-router: + rule: "PathPrefix(`/api/v1/files`) || PathPrefix(`/api/v1/quota`) || PathPrefix(`/api/v1/uploads`)" + service: storage-service + priority: 100 + middlewares: + - cors + - secure-headers + entryPoints: + - web + services: iam-service: loadBalancer: servers: - - url: "http://iam-service:5001" + - url: "http://iam-service-net:8080" web-admin: loadBalancer: @@ -54,4 +66,11 @@ http: web-client: loadBalancer: servers: - - url: "http://web-client:3001" \ No newline at end of file + - url: "http://web-client:3001" + + # EN: Storage Service + # VI: Storage Service + storage-service: + loadBalancer: + servers: + - url: "http://storage-service:8080" \ No newline at end of file