chore(infra): add AI flyer parsing configuration and retry logic
- Add FLYER_AI_TIMEOUT_MS and FLYER_AI_RETRIES environment variables - Configure timeout and retry settings in compose.yml - Update AiFlyerParserService with configurable timeout and retry logic - Add text window reduction strategy for retry attempts - Update documentation in TEKNISK_BESKRIVNING.md - Fix ESLint configuration in app.security.spec.ts
This commit is contained in:
@@ -10,6 +10,8 @@ services:
|
||||
NODE_ENV: "production"
|
||||
DATABASE_URL: "mysql://root:${MARIADB_ROOT_PASSWORD}@recipe-db:3306/${MARIADB_DATABASE}"
|
||||
MISTRAL_API_KEY: "${MISTRAL_API_KEY:-}"
|
||||
FLYER_AI_TIMEOUT_MS: "${FLYER_AI_TIMEOUT_MS:-30000}"
|
||||
FLYER_AI_RETRIES: "${FLYER_AI_RETRIES:-2}"
|
||||
JWT_SECRET: "${JWT_SECRET}"
|
||||
ALLOWED_ORIGIN: "${NEXT_PUBLIC_APP_URL}"
|
||||
ADMIN_NADMIN_PASSWORD: "${ADMIN_NADMIN_PASSWORD}"
|
||||
|
||||
Reference in New Issue
Block a user