dev.conf 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. [base]
  2. ;开发环境配置
  3. [setting]
  4. name = vecan终端
  5. site = http://vecan.shemic.com/
  6. copyright = 2019 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. password = dm_redis_123
  24. port = 6379
  25. name = office_file
  26. prefix = convert_
  27. ;机器人配置 应该加到数据库中
  28. ;https://github.com/wzpan/wukong-robot/blob/master/static/default.yml
  29. ;snowboy配置
  30. [snowboy]
  31. hotword = wukong.pmdl
  32. hotword_switch = False
  33. on_hotword = 悟空别吵.pmdl
  34. off_hotword = 悟空醒醒.pmdl
  35. sensitivity = 0.5
  36. silent_threshold = 15
  37. recording_timeout = 50
  38. ;勿扰模式 开始时间-结束时间
  39. bother_enable = False
  40. ;bother_since = 1
  41. ;bother_till = 100
  42. ;自动聊天
  43. active_mode = True
  44. [robot]
  45. asr = tencent
  46. ai = tuling
  47. tts = tencent
  48. nlu = baidu
  49. [espeak]
  50. appid = 1
  51. [tencent]
  52. ;appid = 1252854083
  53. ;secret_id = AKIDmQvEPYRP1Rh0CGdLF1b3MTsaBfnjQ5cP
  54. ;secret_key = wpazQgljXCgycEi18wbAapwsfi8QXSFu
  55. appid = 1253537070
  56. secret_id = AKID7C7JK9QomcWJUjcsKbK8iLQjhju8fC3z
  57. secret_key = 2vhKRVSn4mXQ9PiT7eOtBqQhR5Z6IvPn
  58. region = ap-beijing
  59. voiceType = 0
  60. language = 1
  61. [baidu]
  62. appid = 9670645
  63. api_key = qg4haN8b2bGvFtCbBGqhrmZy
  64. secret_key = 585d4eccb50d306c401d7df138bb02e7
  65. dev_pid = 1936
  66. voice = 2
  67. per = 4
  68. lan = zh
  69. [xunfei]
  70. appid = 5d1ec5f9
  71. api_key = 2381d523ea042f632b2db844dd9896a1
  72. voice_name = aisxping
  73. [ali]
  74. appKey = x04ujKJ7oRvDgt6h
  75. token = 7237029b69f146e89bac004bb61c09ee
  76. ;xiaoyun为女生,xiaogang为男生, 全部可选:http://suo.im/4x8RzQ
  77. voice = xiaoyun
  78. [tuling]
  79. key = 98f95153fb5c4684a5602b909949ba61
  80. [emotibot]
  81. appid = 32ee80dddb36f1dc5356517503b3f55e
  82. location = 深圳
  83. more = False
  84. ;以上为机器人配置
  85. ;定义一些tornado的配置,可为空
  86. [tornado]
  87. ;后台配置
  88. [admin]
  89. port = 8087
  90. debug = True
  91. ;请求的buffersize
  92. max_buffer_size = 210763776
  93. ;子进程
  94. process = 0
  95. ;定义后台父级菜单
  96. menu_parent = 站点设置:
  97. ;定义后台子级菜单
  98. menu_child = 站点管理:/site/site,转换文件列表:/site/convert
  99. ;cookie
  100. cookie_secret = 61oETzKXQAGaYekL5gEmGeJJFuYh7EQnp2XdTP1o/Vo=
  101. login_url = /user/login
  102. ;是否使用安全cookie
  103. xsrf_cookies = True
  104. ;前台配置
  105. [front]
  106. port = 8089
  107. debug = True
  108. ;请求的buffersize
  109. max_buffer_size = 210763776
  110. ;子进程
  111. process = 0
  112. ;支持手机版
  113. mobile = True