application.yaml 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. spring:
  2. jackson:
  3. deserialization:
  4. fail-on-unknown-properties: true
  5. datasource:
  6. driver-class-name: com.mysql.cj.jdbc.Driver
  7. username: root
  8. password: eai123456
  9. url: jdbc:mysql://192.168.80.1:3309/eai?useSSL=false&serverTimezone=UTC&useUnicode=true&characterEncoding=utf8&allowPublicKeyRetrieval=true
  10. data:
  11. mongodb:
  12. uri: mongodb://admin:eai123456@139.196.252.184:27017/eai?authSource=admin
  13. authentication-database: admin
  14. mail:
  15. host: smtp.163.com
  16. port: 25
  17. username: seecoder2022@163.com # Seecoder的公共邮箱
  18. password: WEIHUIOOJYUFMZGV # 邮箱开启stmp的秘钥
  19. default-encoding: UTF-8
  20. # MyBatis配置
  21. mybatis-plus:
  22. mapper-locations: classpath:mapper/*.xml
  23. type-aliases-package: com/njuzr/eaibackend/po
  24. jwt:
  25. # jjwt密钥算法HS256,要求secret长度至少是256位
  26. secret: xTv@UA7e2q$*n&92AHo5Wj$@KAnguhxTv@UA7e2q$*n&92AHo5Wj$@KAnguhxTv@UA7e2q$*n&92AHo5Wj$@KAnguhxTv@UA7e2q$*n&92AHo5Wj$@KAnguhxTv@UA7e2q$*n&92AHo5Wj$@KAnguhxTv@UA7e2q$*n&92AHo5Wj$@KAnguhxTv@UA7e2q$*n&92AHo5Wj$@KAnguhxTv@UA7e2q$*n&92AHo5Wj$@KAnguh92AHo5Wj$@KAnguh92AHo5Wj$@KAnguh92AHo5Wj$@KAnguh
  27. issuer: eai
  28. expiration: 86400
  29. aliyun:
  30. oss:
  31. endpoint: oss-cn-shanghai.aliyuncs.com
  32. accessKeyId: LTAI5tAbkw8rkreiJbfcY1jZ
  33. accessKeySecret: 2yvtVYE1qAZEgm0ChvdMqhp0LhB5Lj
  34. bucketName: eai-files
  35. logging:
  36. config: classpath:log4j2-prod.xml
  37. openai:
  38. chatgpt:
  39. model: gpt-3.5-turbo
  40. api:
  41. key: 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
  42. config:
  43. llm:
  44. ChatGLM3:
  45. url: http://10.58.0.2:6678
  46. ChatGLM4:
  47. url: http://47.94.251.162:6677
  48. token: seec0der
  49. modelName: glm4-9b-chat
  50. QWen14B:
  51. url: http://10.58.0.2:6679
  52. proxy:
  53. enabled: false
  54. host: 20.111.54.16
  55. port: 8123