Spaces:
Runtime error
Runtime error
Commit History
-
refactor(debug_ssl): simplify and enhance SSL connection debugging script
- Remove redundant certificate format tests and temporary file creation functions - Consolidate SSL connection tests into a single function testing multiple SSL configurations - Add dynamic loading of PyMySQL and handle import failures - Support SSL configurations including no SSL, basic SSL, SSL disabled verification, minimal SSL, and SSL with CA certificate - Improve environment variable validation and error reporting - Provide detailed output on successful configurations and Django SSL options - Update PMS server settings to use no SSL by default based on debug results - Enhance database connection error handling with clearer SSL parameter diagnostics - Recommend running debug_ssl.py for troubleshooting SSL connection issuesf559cc3 -
fix(database): improve SSL handling and error messages for MySQL connection
- Simplify SSL options to enable basic SSL without strict verification - Remove temporary certificate file writing in settings.py - Add detailed messages for SSL certificate validation errors in test_db.py - Handle SSL errors gracefully to inform about updated configuration - Ensure fallback SSL configuration is compatible with production and testing environments598ed33 -
fixed db config
4e819c6 -
fix(env): support FROM_MAIL as alternative for FROM_EMAIL
- Update email sender environment variable to accept FROM_MAIL if FROM_EMAIL is unset - Modify send invite email function to fallback to FROM_MAIL if FROM_EMAIL is missing - Adjust environment validation to check for either FROM_EMAIL or FROM_MAIL - Improve warning message to indicate either variable is acceptable refactor(settings): remove resend email service configuration - Delete Resend SMTP email backend setup and related environment variables - Clean up unused imports and obsolete email configuration in settings.py fix(test_db): handle import errors more explicitly in test_database_connection - Add import of OperationalError at the top of test function - Enhance ImportError handling with additional diagnostic message - Improve code clarity and error information during database connection tests76bf02c -
feat(env): validate configuration and add MySQL connection test with SQLite fallback
- Add environment variable validation and configuration summary display on startup - Test MySQL database connection if all required variables are set, exit on failure - Print warning and fallback to SQLite development database if MySQL config is incomplete - Enhance SSL options for MySQL connection, including certificate handling and verification - Add runtime warnings when database variables are missing or fallback to SQLite is used - Reorder and clarify startup steps: validate env, test DB, run migrations, then start server - Remove unused 'resend' package from requirements.txt to clean dependencies6069ba8