Replace NHTSAClient with OcrClient in vehicles controller. Move cache logic into VehiclesService with format-aware reads (Gemini vs legacy NHTSA entries). Rename nhtsaValue to sourceValue in MatchedField. Remove vpic config from Zod schema and YAML config files. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
75 lines
1.2 KiB
YAML
Executable File
75 lines
1.2 KiB
YAML
Executable File
# CI-specific configuration for backend tests. Mirrors production schema with safe defaults.
|
|
server:
|
|
name: mvp-backend-ci
|
|
port: 3001
|
|
environment: test
|
|
node_env: test
|
|
|
|
database:
|
|
host: mvp-postgres
|
|
port: 5432
|
|
name: motovaultpro
|
|
user: postgres
|
|
|
|
redis:
|
|
host: mvp-redis
|
|
port: 6379
|
|
db: 0
|
|
|
|
platform:
|
|
services:
|
|
vehicles:
|
|
url: http://mvp-platform-vehicles-api:8000
|
|
timeout: 5s
|
|
|
|
service:
|
|
name: mvp-backend
|
|
|
|
cors:
|
|
origins:
|
|
- http://localhost
|
|
allow_credentials: false
|
|
max_age: 0
|
|
|
|
frontend:
|
|
api_base_url: /api
|
|
auth0:
|
|
domain: motovaultpro.us.auth0.com
|
|
audience: https://api.motovaultpro.com
|
|
|
|
health:
|
|
endpoints:
|
|
basic: /health
|
|
ready: /health/ready
|
|
live: /health/live
|
|
startup: /health/startup
|
|
probes:
|
|
startup:
|
|
initial_delay: 1s
|
|
period: 1s
|
|
timeout: 1s
|
|
failure_threshold: 3
|
|
readiness:
|
|
period: 1s
|
|
timeout: 1s
|
|
failure_threshold: 3
|
|
liveness:
|
|
period: 1s
|
|
timeout: 1s
|
|
failure_threshold: 3
|
|
|
|
logging:
|
|
level: debug
|
|
format: json
|
|
destinations:
|
|
- console
|
|
|
|
performance:
|
|
request_timeout: 30s
|
|
max_request_size: 25MB
|
|
compression_enabled: false
|
|
circuit_breaker:
|
|
enabled: false
|
|
failure_threshold: 5
|
|
timeout: 5s
|