mirror of
https://github.com/thecyberlearn/quantum-ai.git
synced 2026-08-18 07:32:58 +00:00
🔧 Fix PostgreSQL connection error - remove invalid MAX_CONNS option
- Remove invalid MAX_CONNS option causing psycopg2.ProgrammingError - Keep CONN_MAX_AGE for connection pooling (valid Django option) - Fix Railway PostgreSQL database configuration Error resolved: invalid connection option "MAX_CONNS" 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
b34d7ad175
commit
753942c8c0
@ -311,9 +311,6 @@ if config('RAILWAY_ENVIRONMENT', default=''):
|
||||
# Database connection optimization for Railway PostgreSQL
|
||||
if 'default' in DATABASES:
|
||||
DATABASES['default']['CONN_MAX_AGE'] = 600 # 10 minutes connection pooling
|
||||
if 'OPTIONS' not in DATABASES['default']:
|
||||
DATABASES['default']['OPTIONS'] = {}
|
||||
DATABASES['default']['OPTIONS']['MAX_CONNS'] = 20
|
||||
|
||||
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user