We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6a07527 + 135199e commit bf2a21dCopy full SHA for bf2a21d
configuration/configuration.py
@@ -37,6 +37,8 @@ def read_secret(secret_name):
37
# PostgreSQL password
38
'HOST': os.environ.get('DB_HOST', 'localhost'), # Database server
39
'PORT': os.environ.get('DB_PORT', ''), # Database port (leave blank for default)
40
+ 'OPTIONS': {'sslmode': os.environ.get('DB_SSLMODE', 'prefer')},
41
+ # Database connection SSLMODE
42
'CONN_MAX_AGE': int(os.environ.get('DB_CONN_MAX_AGE', '300')),
43
# Database connection persistence
44
}
0 commit comments