httpserver-conf.lua 380 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 = false
  8. auth.realm = "nodemcu-httpserver" -- displayed in the login dialog users get
  9. auth.user = "user"
  10. auth.password = "password" -- PLEASE change this
  11. conf.auth = auth
  12. return conf