Add CORS support and System Status Bar

- Added CORS environment variables to Directus service
- Allow requests from launch.jumpstartscaling.com
- Created SystemStatusBar component with:
  - Real-time API health monitoring
  - Database connection status
  - WP Connection status
  - Expandable processing log
- Integrated status bar into AdminLayout (full width at bottom)
- Added padding to main content to prevent overlap

This fixes CORS errors blocking admin pages.
This commit is contained in:
cawcenter
2025-12-13 10:24:41 -05:00
parent 71fd3c630a
commit aa46b98ce7
4 changed files with 279 additions and 1 deletions

View File

@@ -22,6 +22,13 @@ services:
- CACHE_ENABLED=false
- CACHE_STORE=memory
- WEBSOCKETS_ENABLED=true
- CORS_ENABLED=true
- 'CORS_ORIGIN=https://launch.jumpstartscaling.com,http://localhost:4321'
- CORS_METHODS=GET,POST,PATCH,DELETE
- CORS_ALLOWED_HEADERS=Content-Type,Authorization
- CORS_EXPOSED_HEADERS=Content-Range
- CORS_CREDENTIALS=true
- CORS_MAX_AGE=86400
labels:
- "traefik.enable=true"
- "traefik.http.routers.directus.rule=Host(`spark.jumpstartscaling.com`)"