We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0bd5e20 commit aa50726Copy full SHA for aa50726
httpserver-conf.lua
@@ -1,20 +1,15 @@
1
-- httpserver-conf.lua
2
--- Part of nodemcu-httpserver, contains static configuration for httpserver.
+-- Part of nodemcu-httpserver, contains static configuration for httpserver.
3
-- Author: Sam Dieck
4
5
-conf = {}
6
-
7
--- WIFI
8
--- FIXME use these
9
---wifi = {}
10
---wifi.essid = "Internet"
11
---wifi.password = ""
+local conf = {}
12
13
-- Basic Authentication Conf
14
-auth = {}
15
-auth.enabled = false
+local auth = {}
+auth.enabled = true
+auth.realm = "nodemcu-httpserver" -- displayed in the login dialog users get
16
auth.user = "user"
17
-auth.password = "password"
+auth.password = "password" -- PLEASE change this
18
conf.auth = auth
19
20
return conf
0 commit comments