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.
This commit is contained in:
@@ -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"
|
||||
- url: "http://web-client:3001"
|
||||
|
||||
# EN: Storage Service
|
||||
# VI: Storage Service
|
||||
storage-service:
|
||||
loadBalancer:
|
||||
servers:
|
||||
- url: "http://storage-service:8080"
|
||||
Reference in New Issue
Block a user