Add pg_sslmode option.

Allows to use PostgreSQL over SSL #709
This commit is contained in:
Marius Rieder
2019-01-21 19:47:34 +01:00
parent c48c8c04f4
commit 589531163a
3 changed files with 6 additions and 0 deletions

View File

@@ -84,6 +84,9 @@ DATABASES = {
}
}
if os.getenv("DATABASE_SSLMODE", False):
DATABASES['default']['OPTIONS'] = {'sslmode': os.getenv("DATABASE_SSLMODE")}
BROKER_URL = 'amqp://{}:{}@{}:{}/{}'.format(
os.getenv("RABBITMQ_USER", None),
os.getenv("RABBITMQ_PASSWORD", None),