Adding verify_certificates config to disable cert validation for internal certs, fixes #778
This commit is contained in:
@ -27,6 +27,7 @@ class Extension(ext.Extension):
|
||||
schema["enabled"] = config.Boolean()
|
||||
schema["country"] = config.String()
|
||||
schema["locale"] = config.String()
|
||||
schema["verify_certificates"] = config.Boolean()
|
||||
schema["snapcast_enabled"] = config.Boolean()
|
||||
schema["snapcast_host"] = config.String()
|
||||
schema["snapcast_port"] = config.String()
|
||||
|
||||
@ -1197,7 +1197,10 @@ class IrisCore(pykka.ThreadingActor):
|
||||
try:
|
||||
http_client = AsyncHTTPClient()
|
||||
response = await http_client.fetch(
|
||||
url, method="POST", body=json.dumps(data)
|
||||
url,
|
||||
method="POST",
|
||||
body=json.dumps(data)
|
||||
validate_cert=self.config["iris"]["verify_certificates"]
|
||||
)
|
||||
except (urllib.error.HTTPError, urllib.error.URLError) as e:
|
||||
error = json.loads(e.read())
|
||||
|
||||
@ -2,6 +2,7 @@
|
||||
enabled = true
|
||||
country = NZ
|
||||
locale = en_NZ
|
||||
verify_certificates = true
|
||||
snapcast_enabled = true
|
||||
snapcast_host = localhost
|
||||
snapcast_port = 1780
|
||||
|
||||
Reference in New Issue
Block a user