Skip to content

Commit

Permalink
feat: add pgbouncer support to the docker container
Browse files Browse the repository at this point in the history
Add the ability to configure the DISABLE_SERVER_SIDE_CURSORS parameter via environment variables.
More info: https://docs.djangoproject.com/en/4.2/ref/settings/#disable-server-side-cursors
  • Loading branch information
ordinary-dev authored and bameda committed Apr 3, 2024
1 parent 19c8ad2 commit d564852
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docker/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
'HOST': os.getenv('POSTGRES_HOST'),
'PORT': os.getenv('POSTGRES_PORT','5432'),
'OPTIONS': {'sslmode': os.getenv('POSTGRES_SSLMODE','disable')},
'DISABLE_SERVER_SIDE_CURSORS': os.getenv('POSTGRES_DISABLE_SERVER_SIDE_CURSORS', 'False') == 'True',
}
}
SECRET_KEY = os.getenv('TAIGA_SECRET_KEY')
Expand Down

0 comments on commit d564852

Please sign in to comment.