env.conf 1.2 KB

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