dev.conf 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. [base]
  2. ;开发环境配置
  3. [setting]
  4. name = 答题系统
  5. site = http://www.dever.cc/
  6. copyright = 2017 dever.cc v1.0.0
  7. phantomjs = http://192.168.15.10:8910/
  8. ;打印路由表
  9. route = True
  10. [db]
  11. rdb = mysql
  12. [mysql]
  13. host = 192.168.1.203
  14. port = 3307
  15. username = root
  16. password = 123456
  17. dbname = question
  18. prefix = demeter
  19. charset = utf8
  20. ;允许自动建表
  21. create = True
  22. ;定义一些tornado的配置,可为空
  23. [tornado]
  24. ;后台配置
  25. [admin]
  26. port = 8087
  27. debug = True
  28. ;请求的buffersize
  29. max_buffer_size = 210763776
  30. ;子进程
  31. process = 0
  32. ;定义后台父级菜单
  33. menu_parent = 记录点设置:,积分等级设置:
  34. ;定义后台子级菜单
  35. menu_child = 记录点类型:/record/record,记录点数据:/record/data;积分设置:/score/score,等级设置:/score/level
  36. ;cookie
  37. cookie_secret = 61oETzKXQAGaYekL5gEmGeJJFuYh7EQnp2XdTP1o/Vo=
  38. login_url = /user/login
  39. ;是否使用安全cookie
  40. xsrf_cookies = True
  41. ;前台配置
  42. [front]
  43. port = 8088
  44. debug = True
  45. ;请求的buffersize
  46. max_buffer_size = 210763776
  47. ;子进程
  48. process = 0
  49. ;支持手机版
  50. mobile = True