project-gpt-prod.yaml 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. server:
  2. port: 8080 #端口
  3. spring:
  4. cloud:
  5. # nacos
  6. nacos:
  7. discovery:
  8. register-enabled: true
  9. server-addr: nacos-server-hostname:8848
  10. username: nacos-prod
  11. password: centralprod
  12. namespace: a894fba3-ee6e-4dc7-938b-ad11112ccfa9
  13. circuitbreaker:
  14. sentinel:
  15. enabled: true
  16. sentinel:
  17. enabled: true
  18. transport:
  19. dashboard: sentinel-hostname:8858
  20. port: 8719
  21. datasource:
  22. ds-flow-rules:
  23. nacos:
  24. server-addr: nacos-server-hostname:8848
  25. username: nacos-prod
  26. password: centralprod
  27. namespace: 81037616-96ae-412c-a060-a633ba9731b9
  28. group-id: SENTINEL_GROUP
  29. data-id: ${spring.application.name}-flow-rules
  30. rule-type: flow
  31. data-type: json
  32. # 数据库配置
  33. datasource:
  34. url: jdbc:mysql://${ENV_DEFAULT_MYSQL_SERVER_ADDR}/gpt?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true
  35. username: project
  36. password: project1205
  37. # rabbitmq配置
  38. rabbitmq:
  39. host: rabbitmq-hostname
  40. port: 5672
  41. username: central
  42. password: 240203qqqQQQWER
  43. # redis配置
  44. redis:
  45. host: redis-hostname
  46. port: 6379
  47. database: 0
  48. password: HorO9496sCopE
  49. clientName: ${spring.application.name}-redis
  50. # 日志配置
  51. logging:
  52. level:
  53. com:
  54. atmob:
  55. central: info
  56. tencent:
  57. cloud:
  58. cos:
  59. secretId: AKIDkJbcBds6DAybJtEI6j8G9rNkvqgKl061
  60. secretKey: pSqyqa7NN6ZmkRbZIn10lgQwDEySpz1r
  61. bucketName: horoscope-1255984948
  62. cdnHost: http://cdn.atmob.com
  63. config:
  64. withdraw:
  65. warnEnabled: true
  66. webhookUrl: 'https://open.feishu.cn/open-apis/bot/v2/hook/9658fb50-ceb0-4822-aa7e-df70c624b529'
  67. chat:
  68. oneApiUrl: http://123.207.75.31:3000
  69. oneApikey: sk-O2keOgHXHXEuAo0TA79b3f6eAfBf4807B1491b2852702900
  70. # 角色聊天模型
  71. characterChatModel: Doubao-pro-32k
  72. # 绘画生成SD提示词模型
  73. drawSdPromptModel: Doubao-pro-32k
  74. # 对话工具和模板工具模型
  75. chatToolModel: Doubao-lite-32k
  76. draw:
  77. # 任务过期时间 5 * 60 * 1000L = 5min
  78. taskExpiredMillis: 300000
  79. # 任务超时时间 5 * 60 * 1000L = 5min
  80. taskTimeoutMillis: 300000
  81. # 如果当前用户有任务在队列,延迟2s后进入队列
  82. handlingDelayMillis: 2000
  83. # 轮询结果间隔 10s
  84. resultPollingIntervalMillis: 10000
  85. # 轮询识别结果超时时间 5 * 60 * 1000L = 5min
  86. resultPollingTimeoutMillis: 300000
  87. video:
  88. # 任务过期时间 60 * 60 * 1000L = 60min
  89. taskExpiredMillis: 3600000
  90. # 单个任务处理超时时间 45 * 60 * 1000L = 45min
  91. taskTimeoutMillis: 2700000
  92. # 如果当前用户有任务在队列,延迟2s后进入队列
  93. handlingDelayMillis: 2000
  94. # 轮询结果间隔 30s
  95. resultPollingIntervalMillis: 30000
  96. # 轮询识别结果超时时间 30 * 60 * 1000L = 30min
  97. resultPollingTimeoutMillis: 1800000
  98. # 同一用户最大提交任务数
  99. maxRunningTasks: 3
  100. # chatfire host
  101. chatfireHost: https://api.chatfire.cn
  102. # chatfire key
  103. chatfireKey: Bearer sk-Gk45jJdam8ZOGKmW00A9F11a7cF34e3f953b3eDb7b9a2eF8
  104. # hk host
  105. hkHost: https://api.openai-hk.com
  106. # hk key
  107. hkKey: Bearer hk-zcto63100003480674e262a3baf084fb92cc4df0df5c17d6
  108. # 多米 host
  109. duomiHost: http://duomiapi.com
  110. # 多米 key
  111. duomiKey: FmX6sRUWPGgV583tWrqo6vGMPF