feat(config): improve security and add WhiteNoise static file serving #35

Merged
Saani merged 1 commits from feature/meetings into main 2025-11-25 18:15:18 +00:00
Owner

Security Improvements:

  • Fix DEBUG setting to properly parse boolean from environment variable
  • Remove hardcoded SMTP password fallback, rely solely on env var
  • Update Celery to use REDIS_URL environment variable instead of hardcoded localhost

Static File Serving:

  • Add WhiteNoise middleware for production-grade static file serving
  • Configure CompressedManifestStaticFilesStorage for optimized delivery

Configuration Updates:

  • Enable CORS credentials support
  • Remove duplicate CORS_ALLOWED_ORIGINS configuration
  • Update API documentation title from "Blog API" to "Attune Heart Therapy API"
  • Clean up code formatting and remove unnecessary comments

These changes make the application more secure by eliminating hardcoded
credentials and more deployment-ready by properly handling environment
variables and serving static files efficiently in production.

**Security Improvements:** - Fix DEBUG setting to properly parse boolean from environment variable - Remove hardcoded SMTP password fallback, rely solely on env var - Update Celery to use REDIS_URL environment variable instead of hardcoded localhost **Static File Serving:** - Add WhiteNoise middleware for production-grade static file serving - Configure CompressedManifestStaticFilesStorage for optimized delivery **Configuration Updates:** - Enable CORS credentials support - Remove duplicate CORS_ALLOWED_ORIGINS configuration - Update API documentation title from "Blog API" to "Attune Heart Therapy API" - Clean up code formatting and remove unnecessary comments These changes make the application more secure by eliminating hardcoded credentials and more deployment-ready by properly handling environment variables and serving static files efficiently in production.
Saani added 1 commit 2025-11-25 18:15:12 +00:00
**Security Improvements:**
- Fix DEBUG setting to properly parse boolean from environment variable
- Remove hardcoded SMTP password fallback, rely solely on env var
- Update Celery to use REDIS_URL environment variable instead of hardcoded localhost

**Static File Serving:**
- Add WhiteNoise middleware for production-grade static file serving
- Configure CompressedManifestStaticFilesStorage for optimized delivery

**Configuration Updates:**
- Enable CORS credentials support
- Remove duplicate CORS_ALLOWED_ORIGINS configuration
- Update API documentation title from "Blog API" to "Attune Heart Therapy API"
- Clean up code formatting and remove unnecessary comments

These changes make the application more secure by eliminating hardcoded
credentials and more deployment-ready by properly handling environment
variables and serving static files efficiently in production.
Saani merged commit 8ddf14a276 into main 2025-11-25 18:15:18 +00:00
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: ATTUNE-HEART-THERAPY/alternative-backend-service#35
No description provided.