Files
pos-system/infra/traefik
Ho Ngoc Hai 56f08857db 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.
2026-01-13 21:32:36 +07:00
..
2025-12-27 01:31:10 +07:00
2025-12-27 01:31:10 +07:00

Traefik Configuration

Traefik reverse proxy and load balancer configuration.

Files

  • traefik.yml - Static configuration
  • dynamic/routes.yml - HTTP routing rules
  • dynamic/middlewares.yml - Middleware definitions (CORS, rate limiting, security headers)

Usage

Traefik will automatically discover services via Docker labels or file-based configuration.

Routes

  • /api/v1/auth/* -> Auth Service
  • /api/v1/users/* -> Auth Service

Middlewares

  • secure-headers - Security headers
  • cors - CORS configuration
  • auth-ratelimit - Rate limiting for auth endpoints
  • compress - Response compression