Add option to accept invalid certificates

This commit is contained in:
Adrian Kumpf
2019-09-08 14:05:30 +02:00
parent b1ffa97e16
commit ba0ee998c0
4 changed files with 46 additions and 38 deletions

View File

@@ -37,7 +37,8 @@ if System.get_env("DISABLE_MQTT") != "true" do
host: System.fetch_env!("MQTT_HOST"),
username: System.get_env("MQTT_USERNAME"),
password: System.get_env("MQTT_PASSWORD"),
ssl: System.get_env("MQTT_SSL")
tls: System.get_env("MQTT_TLS"),
accept_invalid_certs: System.get_env("MQTT_TLS_ACCEPT_INVALID_CERTS")
end
config :logger,