dev.conf 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. [base]
  2. ;开发环境配置
  3. [setting]
  4. name = 文档转换系统
  5. site = http://doc.dever.cc/
  6. copyright = 2018 dever.cc v1.0.0
  7. ;打印路由表
  8. route = True
  9. [db]
  10. rdb = mysql
  11. [mysql]
  12. host = 0.0.0.0
  13. port = 3309
  14. username = root
  15. password = 123456
  16. dbname = office_convert
  17. prefix = oc
  18. charset = utf8
  19. ;允许自动建表
  20. create = True
  21. [redis]
  22. host = 0.0.0.0
  23. port = 6379
  24. name = office_file
  25. prefix = convert_
  26. ;定义一些tornado的配置,可为空
  27. [tornado]
  28. ;后台配置
  29. [admin]
  30. port = 8087
  31. debug = True
  32. ;请求的buffersize
  33. max_buffer_size = 210763776
  34. ;子进程
  35. process = 0
  36. ;定义后台父级菜单
  37. menu_parent = 站点设置:
  38. ;定义后台子级菜单
  39. menu_child = 站点管理:/site/site,转换文件列表:/site/convert
  40. ;cookie
  41. cookie_secret = 61oETzKXQAGaYekL5gEmGeJJFuYh7EQnp2XdTP1o/Vo=
  42. login_url = /user/login
  43. ;是否使用安全cookie
  44. xsrf_cookies = True
  45. ;前台配置
  46. [front]
  47. port = 8088
  48. debug = True
  49. ;请求的buffersize
  50. max_buffer_size = 210763776
  51. ;子进程
  52. process = 0
  53. ;支持手机版
  54. mobile = True