- Add quamtumtaskai.netcoptech.com to ALLOWED_HOSTS and CSRF_TRUSTED_ORIGINS
- Fix database configuration to fallback to SQLite when no PostgreSQL DATABASE_URL provided
- This should resolve the 502 Bad Gateway error caused by database connection failures
- Fix ALLOWED_HOSTS configuration in dokploy.json (set to *)
- Update production_settings.py to respect SECURE_SSL_REDIRECT environment variable
- Change startup script to use netcop_hub.production_settings instead of production_https_settings
- Add proper environment variable handling for SSL and CSRF settings
- Resolve SSL redirect conflicts between Dokploy proxy and Django settings
- Remove MAX_CONNS from database OPTIONS as it's not a valid psycopg2 parameter
- Keep isolation_level setting for PostgreSQL optimization
- This resolves ProgrammingError: invalid connection option "MAX_CONNS"
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
- Add try/catch around get_wsgi_application() to capture startup errors
- Print detailed error messages and traceback for debugging
- Exit with error code 1 on failure to ensure container fails fast
- This will help diagnose the silent Django startup failure in Dokploy
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
MAJOR CLEANUP:
- Remove ALL backup files and duplicate variants (*-simple, *.backup)
- Standardize requirements.txt to 11 essential dependencies (vs 24)
- Clean settings.py: remove middleware/cache/Redis dependencies
- Simplify Dockerfile.captain: essential features only
- Replace 2 deployment guides with 1 clean DEPLOYMENT_GUIDE.md
- Fix broken imports in authentication, agents, wallet modules
RESULT:
- One clean standard version of everything
- No more confusion between simple/complex variants
- Essential dependencies only
- Standard Django configuration
- Ready for straightforward CapRover deployment
- All imports working correctly
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
Complete Django AI agent marketplace with security optimizations
and clean deployment documentation without any API keys or secrets.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>