conf.lua 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. local conf = {
  2. sailor = {
  3. app_name = 'Lua.Space',
  4. app_url = 'http://lua.space/',
  5. default_static = nil, -- If defined, default page will be a rendered lp as defined.
  6. -- Example: 'maintenance' will render /views/maintenance.lp
  7. default_controller = 'main',
  8. default_action = 'index',
  9. theme = 'devAid',
  10. layout = 'index',
  11. route_parameter = 'r',
  12. default_error404 = 'error/404',
  13. enable_autogen = false, -- default is false, should be true only in development environment
  14. friendly_urls = true,
  15. max_upload = 1024 * 1024,
  16. environment = "development", -- this will use db configuration named development
  17. hide_stack_trace = false -- false recommended for development, true recommended for production
  18. },
  19. db = {
  20. development = { -- current environment
  21. driver = 'mysql',
  22. host = '',
  23. user = '',
  24. pass = '',
  25. dbname = ''
  26. }
  27. },
  28. smtp = {
  29. server = '',
  30. user = '',
  31. pass = '',
  32. from = ''
  33. },
  34. lua_at_client = {
  35. vm = "starlight", -- starlight is default. Other options are moonshine, lua51js and luavmjs. They need to be downloaded.
  36. },
  37. debug = {
  38. inspect = false
  39. }
  40. }
  41. return conf