Read the statement by Michael Teeuw here.
Protect MM from the outside with user and pass
-
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
-
@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 tunnelyou 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/ -
@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 tunnelyou 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
-
@kusselin you can also search
using ngx provide userid/password authentication
and it describes how to enable userid/password authentication in ngx