Browse Source

Better comments, add realm

Marcos Kirsch 8 years ago
parent
commit
aa507264eb
1 changed files with 6 additions and 11 deletions
  1. 6 11
      httpserver-conf.lua

+ 6 - 11
httpserver-conf.lua

@@ -1,20 +1,15 @@
 -- httpserver-conf.lua
--- Part of nodemcu-httpserver, contains static configuration for httpserver. 
+-- Part of nodemcu-httpserver, contains static configuration for httpserver.
 -- Author: Sam Dieck
 
-conf = {}
-
--- WIFI
--- FIXME use these
---wifi = {}
---wifi.essid = "Internet"
---wifi.password = ""
+local conf = {}
 
 -- Basic Authentication Conf
-auth = {}
-auth.enabled = false
+local auth = {}
+auth.enabled = true
+auth.realm = "nodemcu-httpserver" -- displayed in the login dialog users get
 auth.user = "user"
-auth.password = "password"
+auth.password = "password" -- PLEASE change this
 conf.auth = auth
 
 return conf