Read the statement by Michael Teeuw here.
Force client https with server https already setup
-
I have a server with MM Server set up ready. I can access it with my browser via https serverd by nginx reverse proxy.
The problem is when I want to use it on the client, by doingnode clientonly --address mymm.xxx.com --port xxx, it saysSyntax Error: Unexpected tocken < html>. I guess it is caused by my https redirects. If my reverse proxy recieve http request it will redirect http request to https via 307 code.So I changed the
--addressto--address https://mymm.xxx.com, this time it sayshttp://https://mymm.xxx.com. Well, ok. I guess no way to use https?I can start the MM by using Firefox
-kioskoption but it is also buggy, can’t promise it will go fullscreen 100%.And idea how to run my client with node via https? Or i really have to use the plain http?
-
@KisonHe why use the client? Just launch chromium_browser… see my run_start.sh script here
https://github.com/sdetweil/MagicMirror_scriptsfor the syntax… I use this on pi0 where electron doesn’t exist.
-
@sdetweil Thanks for replying :)
It seems chromium’s-kioskoption works better than Firefox. When I use Firefox it has quite a chance not actully going full screen. I think my problem is no more now.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login