Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wss:// support #138

Open
wants to merge 7 commits into
base: upcoming/v1.1
Choose a base branch
from
Open

wss:// support #138

wants to merge 7 commits into from

Conversation

snoj
Copy link

@snoj snoj commented Dec 13, 2023

Added ability to use wss for ssl deployments (eg traefik/nginx proxy manager).

mtoner23 and others added 4 commits November 27, 2023 22:52
closes Ankermgmt#131 

Starting with the new firmware releases to anker make printers in the
past few weeks, MQTT no longer connects. There is a field in the mqtt
msg that expects 11 zeroes. these 11 bytes are no longer all zeroes. I
switched the protocol to expect just bytes here since we did nothing
with the zeroes to begin with this should be a backwards compatible
change.

Pasted below is a snippet from my terminal printing out the padding
field. you'll see 2 bytes in the middle of the 11 that are no longer
zeros.

```
[*] Padding: 0x0 0x0 0x0 0x3c 0x11 0x0 0x0 0x0 0x0 0x0 0x0
[*] Padding: 0x0 0x0 0x0 0x95 0x15 0x0 0x0 0x0 0x0 0x0 0x0
[*] Padding: 0x0 0x0 0x0 0xc6 0x20 0x0 0x0 0x0 0x0 0x0 0x0
[*] Padding: 0x0 0x0 0x0 0x5c 0x1d 0x0 0x0 0x0 0x0 0x0 0x0
[*] Padding: 0x0 0x0 0x0 0xa9 0x18 0x0 0x0 0x0 0x0 0x0 0x0
[*] Padding: 0x0 0x0 0x0 0xfa 0xf 0x0 0x0 0x0 0x0 0x0 0x0
[*] Padding: 0x0 0x0 0x0 0x99 0x21 0x0 0x0 0x0 0x0 0x0 0x0
[*] Padding: 0x0 0x0 0x0 0xd6 0x15 0x0 0x0 0x0 0x0 0x0 0x0
[*] Padding: 0x0 0x0 0x0 0x4c 0x9 0x0 0x0 0x0 0x0 0x0 0x0
[*] Padding: 0x0 0x0 0x0 0x3d 0x13 0x0 0x0 0x0 0x0 0x0 0x0
[*] Padding: 0x0 0x0 0x0 0xe3 0xb 0x0 0x0 0x0 0x0 0x0 0x0
```

Screenshot showing all green on the web ui after my change
<img width="1036" alt="image"
src="https://github.com/Ankermgmt/ankermake-m5-protocol/assets/22949655/9efce17f-a1e2-44cc-b2a7-1550c211a10c">
Added ability to use wss for ssl deployments (eg traefik/nginx proxy manager).
@billyjbryant
Copy link
Contributor

Can you provide screenshots as well as documentation on how you configure this for operation?

@snoj
Copy link
Author

snoj commented Dec 14, 2023

Can you provide screenshots as well as documentation on how you configure this for operation?

The change doesn't have any configuration needs. It just allows for a reverse proxy to be able to use certificates/tls. The original code had hardcoded ws:// for the websocket url in the webui. This code automatically sets the protocol to wss for the websocket urls if https is being used.

@billyjbryant
Copy link
Contributor

Can you target the upcoming branch instead of master?

@snoj snoj changed the base branch from master to upcoming/v1.1 January 15, 2024 23:19
@snoj
Copy link
Author

snoj commented Jan 15, 2024

I assume you mean "upcoming/v1.1".

Done

1.0.1 - Fix mqtt bug release
@anselor anselor mentioned this pull request May 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants