httpserver-conf.lua 561 B

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