use https with port 7130 and mention the behaviour in the docs

This commit is contained in:
alfrix committed 2022-11-18 13:54:16 -03:00
1 parent 5d12addbba
commit c3c28175ca
2 files changed
+2 -1

No files matched your search

+1
View File
@@ -41,6 +41,7 @@ Multiple printers can be defined
[printer Ender 3 Pro]
# Define the moonraker host/port if different from 127.0.0.1 and 7125
moonraker_host: 127.0.0.1
# ports 443 and 7130 will use https/wss
moonraker_port: 7125
# Moonraker API key if this is not connecting from a trusted client IP
moonraker_api_key: False
+1 -1
View File
@@ -12,7 +12,7 @@ class KlippyRest:
@property
def endpoint(self):
protocol = "http"
if int(self.port) == 443:
if int(self.port) in {443, 7130}:
protocol = "https"
return f"{protocol}://{self.ip}:{self.port}"