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.

    Protect MM from the outside with user and pass

    Scheduled Pinned Locked Moved General Discussion
    4 Posts 2 Posters 288 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.
    • kusselinK Offline
      kusselin
      last edited by

      Hello everyone,

      I have the current MM running as a server and this is accessible from outside via proxy ngx.
      Now my question: can I protect it with a password login?
      I enter https://xxxxxxx.com in the browser and then a login screen with user and password appears.
      Is that possible? If so, what do I have to do? How can I protect the MM from the outside?

      Thank you very much for any information

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

        @kusselin MagicMirror doesn’t provide that functionality,

        i don’t open any ports on my system anymore. i don’t want to learn and try to implement anti hacker solutions.
        i use a cloudflare tunnel, which has a token authorized agent running on my network connected to the cloudflare system to create the tunnel

        you need to provide a dns record which they can be the host for

        then i can create contact points on the entry and they will route traffic to them.

        cloudflare can provide the user authentication component

        i bought a dns record in the .xyz domain. so my host is something.xyz

        then my home assistant is
        ha.something.xyz
        i have 11 apps hosted this way
        none use https on my network (from the agent to the app)

        this tunnel approach also works where your isp doesn’t have or charges more for incoming traffic

        this tunneling service is currently free

        i used to use a dyndns host and open ports on my network but got some unwanted inbound traffic
        for an example
        see https://www.crosstalksolutions.com/cloudflare-tunnel-easy-setup/

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        kusselinK 1 Reply Last reply Reply Quote 0
        • kusselinK Offline
          kusselin @sdetweil
          last edited by kusselin

          @sdetweil said in Protect MM from the outside with user and pass:

          @kusselin MagicMirror doesn’t provide that functionality,

          i don’t open any ports on my system anymore. i don’t want to learn and try to implement anti hacker solutions.
          i use a cloudflare tunnel, which has a token authorized agent running on my network connected to the cloudflare system to create the tunnel

          you need to provide a dns record which they can be the host for

          then i can create contact points on the entry and they will route traffic to them.

          cloudflare can provide the user authentication component

          i bought a dns record in the .xyz domain. so my host is something.xyz

          then my home assistant is
          ha.something.xyz
          i have 11 apps hosted this way
          none use https on my network (from the agent to the app)

          this tunnel approach also works where your isp doesn’t have or charges more for incoming traffic

          this tunneling service is currently free

          i used to use a dyndns host and open ports on my network but got some unwanted inbound traffic
          for an example
          see https://www.crosstalksolutions.com/cloudflare-tunnel-easy-setup/

          Ok Sam, thanks a lot for the information

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

            @kusselin you can also search

            using ngx provide userid/password authentication
            

            and it describes how to enable userid/password authentication in ngx

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 1
            • 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