cedbossneo / openmower-gui

28 stars 18 forks source link

Allow secure websockets #41

Closed fallingcats closed 5 months ago

fallingcats commented 5 months ago

Use secure wss:// websocket connections when connected via https

Why?

I need to run my instance behind an https proxy to make it embeddable as an iframe inside home assistant. That would be all well and good but webbrowsers refuse to allow connections to insecure websockets from a secure origin (the proxied webpage).

TomasSeven commented 5 months ago

@fallingcats do you care to point at a guide howto setup a https proxy on the openmower install? I'd love to have the gui as a iframe in home assistant.

fallingcats commented 5 months ago

@fallingcats do you care to point at a guide howto setup a https proxy on the openmower install? I'd love to have the gui as a iframe in home assistant.

There is still something missing to make it work it seems, but I haven't yet figured out what exactly. Probably also set the UI to use actual routes for the UI. Once that's done I could maybe add an article to the wiki?