Add DB_OPTIONS to enable DBs with SSL

This commit is contained in:
Vegetto 2021-02-20 16:42:48 +01:00 committed by GitHub
parent b6b505c361
commit a44f72a030
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -175,6 +175,7 @@ WSGI_APPLICATION = 'recipes.wsgi.application'
DATABASES = {
'default': {
'ENGINE': os.getenv('DB_ENGINE') if os.getenv('DB_ENGINE') else 'django.db.backends.sqlite3',
'OPTIONS': os.getenv('DB_OPTIONS') if os.getenv('DB_OPTIONS') else [],
'HOST': os.getenv('POSTGRES_HOST'),
'PORT': os.getenv('POSTGRES_PORT'),
'USER': os.getenv('POSTGRES_USER'),