Skip to content

Commit aa50726

Browse files
author
Marcos Kirsch
committed
Better comments, add realm
1 parent 0bd5e20 commit aa50726

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

httpserver-conf.lua

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,15 @@
11
-- httpserver-conf.lua
2-
-- Part of nodemcu-httpserver, contains static configuration for httpserver.
2+
-- Part of nodemcu-httpserver, contains static configuration for httpserver.
33
-- Author: Sam Dieck
44

5-
conf = {}
6-
7-
-- WIFI
8-
-- FIXME use these
9-
--wifi = {}
10-
--wifi.essid = "Internet"
11-
--wifi.password = ""
5+
local conf = {}
126

137
-- Basic Authentication Conf
14-
auth = {}
15-
auth.enabled = false
8+
local auth = {}
9+
auth.enabled = true
10+
auth.realm = "nodemcu-httpserver" -- displayed in the login dialog users get
1611
auth.user = "user"
17-
auth.password = "password"
12+
auth.password = "password" -- PLEASE change this
1813
conf.auth = auth
1914

2015
return conf

0 commit comments

Comments
 (0)