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
|
@ -241,7 +241,9 @@ class SuperUserConfigFile(ApiResource):
|
|||
if not filename in CONFIG_FILENAMES:
|
||||
abort(404)
|
||||
|
||||
if SuperUserPermission().can():
|
||||
# Note: This method can be called before the configuration exists
|
||||
# to upload the database SSL cert.
|
||||
if not CONFIG_PROVIDER.yaml_exists() or SuperUserPermission().can():
|
||||
uploaded_file = request.files['file']
|
||||
if not uploaded_file:
|
||||
abort(400)
|
||||
|
|
Reference in a new issue