Merge pull request #434 from angelnu/develop
Add DB_OPTIONS to enable DBs with SSL
This commit is contained in:
commit
28312774bd
@ -13,6 +13,7 @@ TIMEZONE=Europe/Berlin
|
|||||||
|
|
||||||
# add only a database password if you want to run with the default postgres, otherwise change settings accordingly
|
# add only a database password if you want to run with the default postgres, otherwise change settings accordingly
|
||||||
DB_ENGINE=django.db.backends.postgresql
|
DB_ENGINE=django.db.backends.postgresql
|
||||||
|
# DB_OPTIONS= {}
|
||||||
POSTGRES_HOST=db_recipes
|
POSTGRES_HOST=db_recipes
|
||||||
POSTGRES_PORT=5432
|
POSTGRES_PORT=5432
|
||||||
POSTGRES_USER=djangouser
|
POSTGRES_USER=djangouser
|
||||||
|
@ -175,6 +175,7 @@ WSGI_APPLICATION = 'recipes.wsgi.application'
|
|||||||
DATABASES = {
|
DATABASES = {
|
||||||
'default': {
|
'default': {
|
||||||
'ENGINE': os.getenv('DB_ENGINE') if os.getenv('DB_ENGINE') else 'django.db.backends.sqlite3',
|
'ENGINE': os.getenv('DB_ENGINE') if os.getenv('DB_ENGINE') else 'django.db.backends.sqlite3',
|
||||||
|
'OPTIONS': ast.literal_eval(os.getenv('DB_OPTIONS')) if os.getenv('DB_OPTIONS') else {},
|
||||||
'HOST': os.getenv('POSTGRES_HOST'),
|
'HOST': os.getenv('POSTGRES_HOST'),
|
||||||
'PORT': os.getenv('POSTGRES_PORT'),
|
'PORT': os.getenv('POSTGRES_PORT'),
|
||||||
'USER': os.getenv('POSTGRES_USER'),
|
'USER': os.getenv('POSTGRES_USER'),
|
||||||
|
Loading…
Reference in New Issue
Block a user