env.conf 1.3 KB

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