Files
pos-system/infra/traefik
Ho Ngoc Hai 8af86e9e89 feat: implement Phase 1 payment gateway, real-time SignalR, kitchen-inventory deduction, and order payment flow
- wallet-service: IPaymentGateway abstraction + VN Pay implementation (HMAC-SHA512, sandbox), Payment aggregate root, PaymentsController with create/callback/query endpoints
- order-service: PosHub SignalR hub with Redis backplane + MessagePack, strongly-typed clients, 3 group types (shop/kds/pos), integrated into Create/Pay/Complete/Cancel order handlers
- fnb-engine + inventory-service: Kitchen→Inventory auto-deduction via domain events, HTTP with Polly retry + circuit breaker, idempotency check, graceful degradation on insufficient stock
- order-service: Enhanced PayOrderCommand with 3 flows (cash/card/online), PaymentPending status, WalletServiceClient, CompleteOrderPaymentCommand for gateway callbacks
- POS frontend: Cash/Card/QR payment components wired to real backend, BFF proxy updated
- infra: Traefik routes for fnb-engine, inventory-service, and SignalR WebSocket hub
- ROADMAP.md: Updated with Phase 1 progress tracking

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-06 13:28:46 +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