# EN: Static route configuration for IAM Service
# VI: Cấu hình route tĩnh cho IAM Service
# 
# This file defines routes manually because Docker provider is not working
# Đây là file định nghĩa routes thủ công vì Docker provider không hoạt động

http:
  routers:
    iam-service:
      rule: "PathPrefix(`/api/v1/auth`) || PathPrefix(`/api/v1/users`) || PathPrefix(`/api/v1/identity`) || PathPrefix(`/api/v1/access`) || PathPrefix(`/api/v1/governance`) || PathPrefix(`/api/v1/rbac`) || PathPrefix(`/api/v1/mfa`) || PathPrefix(`/api/v1/sessions`)"
      service: iam-service
      entryPoints:
        - web

  services:
    iam-service:
      loadBalancer:
        servers:
          - url: "http://iam-service:5001"
        healthCheck:
          path: "/health"
          interval: "10s"
          timeout: "3s"
