mirror of
https://pagure.io/fm-orchestrator.git
synced 2026-11-03 13:55:17 +08:00
Allow turning of ssl for rida.py
Even if it means that authn won't work. Nice for development.
This commit is contained in:
2
rida.py
2
rida.py
@@ -165,6 +165,8 @@ def query_build(id):
|
||||
return "No such module found.", 404
|
||||
|
||||
def _establish_ssl_context(conf):
|
||||
if conf.ssl_enabled == False:
|
||||
return None
|
||||
# First, do some validation of the configuration
|
||||
attributes = (
|
||||
'ssl_certificate_file',
|
||||
|
||||
@@ -78,6 +78,7 @@ def from_file(filename=None):
|
||||
conf.port = default.get("port")
|
||||
conf.host = default.get("host")
|
||||
|
||||
conf.ssl_enabled = asbool(default.get("ssl_enabled"))
|
||||
conf.ssl_certificate_file = default.get("ssl_certificate_file")
|
||||
conf.ssl_certificate_key_file = default.get("ssl_certificate_key_file")
|
||||
conf.ssl_ca_certificate_file = default.get("ssl_ca_certificate_file")
|
||||
|
||||
Reference in New Issue
Block a user