From aa507264eba7548d8baa86ce9c7d3cb297936650 Mon Sep 17 00:00:00 2001 From: Marcos Kirsch Date: Sun, 19 Jul 2015 13:34:16 -0500 Subject: [PATCH] Better comments, add realm --- httpserver-conf.lua | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/httpserver-conf.lua b/httpserver-conf.lua index d9e70e8..75d8b8b 100644 --- a/httpserver-conf.lua +++ b/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