MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    Force client https with server https already setup

    Scheduled Pinned Locked Moved Troubleshooting
    3 Posts 2 Posters 241 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • K Offline
      KisonHe
      last edited by

      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 doing node clientonly --address mymm.xxx.com --port xxx, it says Syntax 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 --address to --address https://mymm.xxx.com, this time it says http://https://mymm.xxx.com. Well, ok. I guess no way to use https?

      I can start the MM by using Firefox -kiosk option 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?

      S 1 Reply Last reply Reply Quote 0
      • S Offline
        sdetweil @KisonHe
        last edited by sdetweil

        @KisonHe why use the client? Just launch chromium_browser… see my run_start.sh script here
        https://github.com/sdetweil/MagicMirror_scripts

        for the syntax… I use this on pi0 where electron doesn’t exist.

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        K 1 Reply Last reply Reply Quote 0
        • K Offline
          KisonHe @sdetweil
          last edited by

          @sdetweil Thanks for replying :)
          It seems chromium’s -kiosk option 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.

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post
          Enjoying MagicMirror? Please consider a donation!
          MagicMirror created by Michael Teeuw.
          Forum managed by Sam, technical setup by Karsten.
          This forum is using NodeBB as its core | Contributors
          Contact | Privacy Policy