fix(cors,n8n): fix CORS for production, add unattended n8n init with seed #47

Merged
Ichitux merged 1 commits from fix/cors-n8n-init-seed into main 2026-07-17 10:59:56 +00:00
Owner
  • Change CORS_ORIGIN from localhost:4000 to farmacias.hacecalor.net in docker-compose.yml
  • Add postgres and parapharmacy-api healthchecks
  • Add n8n-init service that runs BEFORE n8n starts:
    • Imports workflows via n8n CLI
    • Activates all workflows via publish:workflow
    • Seeds parapharmacy DB with 20 test products
  • Fix parapharmacy-api healthcheck to use node instead of wget (not available in image)
  • Fix seed.json to use {products: [...]} format with required source_url field
  • Remove activate-workflows.js (replaced by CLI approach)
- Change CORS_ORIGIN from localhost:4000 to farmacias.hacecalor.net in docker-compose.yml - Add postgres and parapharmacy-api healthchecks - Add n8n-init service that runs BEFORE n8n starts: - Imports workflows via n8n CLI - Activates all workflows via publish:workflow - Seeds parapharmacy DB with 20 test products - Fix parapharmacy-api healthcheck to use node instead of wget (not available in image) - Fix seed.json to use {products: [...]} format with required source_url field - Remove activate-workflows.js (replaced by CLI approach)
Ichitux added 1 commit 2026-07-17 10:59:12 +00:00
fix(cors,n8n): fix CORS for production, add unattended n8n init with seed
Run Tests on Branches / Parapharmacy API Tests (push) Has been skipped
Run Tests on Branches / PIP Platform Tests (push) Has been skipped
Run Tests on Branches / Detect Changes (push) Successful in 11s
Run Tests on Branches / Backend Tests (push) Has been skipped
Run Tests on Branches / Frontend Tests (push) Has been skipped
Run Tests on Branches / Frontend Mobile Tests (push) Has been skipped
f6fc356c76
- Change CORS_ORIGIN from localhost:4000 to farmacias.hacecalor.net in docker-compose.yml
- Add postgres and parapharmacy-api healthchecks
- Add n8n-init service that runs BEFORE n8n starts:
  - Imports workflows via n8n CLI
  - Activates all workflows via publish:workflow
  - Seeds parapharmacy DB with 20 test products
- Fix parapharmacy-api healthcheck to use node instead of wget (not available in image)
- Fix seed.json to use {products: [...]} format with required source_url field
- Remove activate-workflows.js (replaced by CLI approach)
Ichitux merged commit 3153df35ec into main 2026-07-17 10:59:56 +00:00
Ichitux deleted branch fix/cors-n8n-init-seed 2026-07-17 10:59:57 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Ichitux/FarmaFinder#47