env.conf 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. [base]
  2. ;线上环境配置,请设置环境变量DEMETER_CONF = env
  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. [db]
  9. rdb = mysql
  10. [mysql]
  11. host = 192.168.1.203
  12. port = 3307
  13. username = root
  14. password = 123456
  15. dbname = demeter
  16. prefix = demeter
  17. charset = utf8
  18. ;定义一些tornado的配置,可为空
  19. [tornado]
  20. ;后台配置
  21. [admin]
  22. port = 8087
  23. debug = True
  24. ;请求的buffersize
  25. max_buffer_size = 210763776
  26. ;子进程
  27. process = 0
  28. ;定义后台父级菜单
  29. menu_parent = 站点设置:
  30. ;定义后台子级菜单
  31. menu_child = 站点管理:/site/site,抢购商品设置:/site/product
  32. ;cookie
  33. cookie_secret = 61oETzKXQAGaYekL5gEmGeJJFuYh7EQnp2XdTP1o/Vo=
  34. login_url = /user/login
  35. ;是否使用安全cookie
  36. xsrf_cookies = True
  37. ;前台配置
  38. [front]
  39. port = 8088
  40. debug = True
  41. ;请求的buffersize
  42. max_buffer_size = 210763776
  43. ;子进程
  44. process = 0
  45. ;支持手机版
  46. mobile = True