Skip to content
Permalink
Browse files
[websocket] Secure websocket with address binding and SSL
  • Loading branch information
goldyfruit committed Dec 30, 2020
1 parent 1b13c52 commit 554a4720dc551b0fbb51b62367f1c4772cc346ed
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
@@ -15,6 +15,7 @@ The main differences with `dev_setup.sh` are the following:
- Pulseaudio optimizations
- Install and configure Mycroft AI Core on multiple hosts at the same time with the same configuration
- Protect Mycroft message bus service port `8181`
- Secure Mycroft message bus websocket

`pairing-code.sh` script is generated during the installation process, this script helps you to retrieve the pairing code if you don't hear it.

@@ -105,6 +106,12 @@ mycroft_name: picroft
# Protect Mycroft message bus port by dropping network connection on port 8181
mycroft_bus_firewall: yes
# Bind the Mycroft websocket on a specific IP address, by default listening on 0.0.0.0
mycroft_bus_bind_address: "0.0.0.0"
# Enable SSL encryption for Mycroft websocket
mycroft_bus_ssl: yes
# Confirmation about Mycroft AI Core uninstall
mycroft_uninstall: no
@@ -13,6 +13,8 @@ mycroft_confirm_listening: yes
mycroft_log_level: INFO
mycroft_name: picroft
mycroft_bus_firewall: yes
mycroft_bus_bind_address: 0.0.0.0
mycroft_bus_ssl: yes
mycroft_uninstall: no
mycroft_extra_skills:
- https://github.com/JarbasSkills/skill-ddg.git
@@ -7,6 +7,10 @@
"enclosure": {
"platform": "{{ mycroft_name }}"
},
"websocket": {
"host": "{{ mycroft_bus_bind_address }}",
"ssl": {{ mycroft_bus_ssl | lower }}
},
"ipc_path": "{{ _mycroft_ipc }}",
"log_level": "{{ mycroft_log_level }}",
"skills": {
@@ -21,4 +25,4 @@
{% else %},
"debug": false
{% endif %}
}
}

0 comments on commit 554a472

Please sign in to comment.