httpserver-conf.lua 488 B

123456789101112131415
  1. -- httpserver-conf.lua
  2. -- Part of nodemcu-httpserver, contains static configuration for httpserver.
  3. -- Author: Sam Dieck
  4. local conf = {}
  5. -- Basic Authentication Conf
  6. local auth = {}
  7. auth.enabled = true
  8. auth.realm = "nodemcu-httpserver" -- displayed in the login dialog users get
  9. -- Add users and passwords to this table. Do not leave this unchanged if you enable authentication!
  10. auth.users = {user1 = "password1", user2 = "password2", user3 = "password3"}
  11. conf.auth = auth
  12. return conf