Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor/ Update CORS Policy and Database Migrations #38

Merged
merged 2 commits into from
Oct 9, 2024

Conversation

mbsantiago
Copy link
Owner

This PR addresses CORS configuration and database migration handling, along with introducing a production-ready Docker Compose setup.

Changes:

  • CORS: The CORS policy has been updated to allow all origins by default for greater flexibility. Users can now override this and define specific allowed origins using environment variables. This provides a more secure and customizable approach to CORS management.
  • Database Migrations: Improved the initial database migration to ensure all datetime fields are correctly defined as timestamp with time zone when using PostgreSQL. This enhances database compatibility and prevents potential timezone-related issues.

Additions:

Production Docker Compose: Added compose.prod.yml to streamline the deployment of a production-ready "whombat" instance. This configuration includes:

  • PostgreSQL database integration
  • 3 replicas for increased availability and scalability
  • A reverse proxy for improved security and performance

Copy link

codecov bot commented Oct 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 66.47%. Comparing base (7fa94d6) to head (0868e7d).
Report is 3 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #38   +/-   ##
=======================================
  Coverage   66.46%   66.47%           
=======================================
  Files         179      179           
  Lines        8365     8367    +2     
=======================================
+ Hits         5560     5562    +2     
  Misses       2805     2805           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@mbsantiago mbsantiago merged commit 5fb37d1 into main Oct 9, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant