diff --git a/manifests/server.pp b/manifests/server.pp index dc656be..ca7bea6 100644 --- a/manifests/server.pp +++ b/manifests/server.pp @@ -22,6 +22,7 @@ class mosquitto::server ( $infra_service_username = 'infra', $websocket_port = 80, $enable_tls = false, + $enable_tls_websocket = false, $websocket_tls_port = 8080, $ca_file = undef, $cert_file = undef, diff --git a/templates/mosquitto.conf.erb b/templates/mosquitto.conf.erb index 7e83ab7..39394fc 100644 --- a/templates/mosquitto.conf.erb +++ b/templates/mosquitto.conf.erb @@ -293,7 +293,7 @@ listener <%= @websocket_port %> protocol websockets # Encrypted http websocket port -<% if @enable_tls -%> +<% if @enable_websocket_tls -%> listener <%= @websocket_tls_port %> cafile /etc/mosquitto/ca.crt certfile /etc/mosquitto/server.crt