Allow SSL cert for the database to be configured
This change adds a field for the SSL cert for the database in the setup tool. Fixes #89
This commit is contained in:
parent
4ec2143d47
commit
bb07d0965f
8 changed files with 45 additions and 12 deletions
|
@ -84,10 +84,11 @@ db_random_func = CallableProxy()
|
|||
db_for_update = CallableProxy()
|
||||
|
||||
|
||||
def validate_database_url(url, connect_timeout=5):
|
||||
driver = _db_from_url(url, {
|
||||
'connect_timeout': connect_timeout
|
||||
})
|
||||
def validate_database_url(url, db_kwargs, connect_timeout=5):
|
||||
db_kwargs = db_kwargs.copy()
|
||||
db_kwargs['connect_timeout'] = connect_timeout
|
||||
|
||||
driver = _db_from_url(url, db_kwargs)
|
||||
driver.connect()
|
||||
driver.close()
|
||||
|
||||
|
|
Reference in a new issue