* script for controlling garage that is aware of door states * Overhaul garage door example Hardware now calls for reed relay in order to be able to tell the state of the switch. This way, we can have distinct open/close operations that error if the door is already in that state. Allows for potential better integration with home automation systems. * Prepare for push to GitHub * Restore defaults * Make HTTP auth realm match zeroconf networking name
18 lines
550 B
Lua
18 lines
550 B
Lua
-- httpserver-conf.lua
|
|
-- Part of nodemcu-httpserver, contains static configuration for httpserver.
|
|
-- Author: Sam Dieck
|
|
|
|
local conf = {}
|
|
|
|
-- Configure Basic HTTP Authentication.
|
|
local auth = {}
|
|
-- Set to true if you want to enable.
|
|
auth.enabled = false
|
|
-- Displayed in the login dialog users see before authenticating.
|
|
auth.realm = "nodemcu"
|
|
-- Add users and passwords to this table. Do not leave this unchanged if you enable authentication!
|
|
auth.users = {user1 = "password1", user2 = "password2", user3 = "password3"}
|
|
|
|
conf.auth = auth
|
|
return conf
|