application.yaml 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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. #数据库配置更新
  10. url: jdbc:mysql://139.196.252.184:3306/eai?useSSL=false&serverTimezone=UTC&useUnicode=true&characterEncoding=utf8&allowPublicKeyRetrieval=true
  11. data:
  12. mongodb:
  13. uri: mongodb://admin:eai123456@139.196.252.184:27017/eai?authSource=admin
  14. authentication-database: admin
  15. #redis配置更新
  16. redis:
  17. host: 139.196.252.184
  18. port: 6378
  19. password: eai123456
  20. mail:
  21. host: smtp.163.com
  22. port: 25
  23. username: seecoder2022@163.com # Seecoder的公共邮箱
  24. password: WEIHUIOOJYUFMZGV # 邮箱开启stmp的秘钥
  25. default-encoding: UTF-8
  26. # MyBatis配置
  27. mybatis-plus:
  28. mapper-locations: classpath:mapper/*.xml
  29. type-aliases-package: com/njuzr/eaibackend/po
  30. jwt:
  31. # jjwt密钥算法HS256,要求secret长度至少是256位
  32. 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
  33. issuer: eai
  34. expiration: 86400
  35. aliyun:
  36. oss:
  37. endpoint: oss-cn-shanghai.aliyuncs.com
  38. accessKeyId: LTAI5tAbkw8rkreiJbfcY1jZ
  39. accessKeySecret: 2yvtVYE1qAZEgm0ChvdMqhp0LhB5Lj
  40. bucketName: eai-files
  41. #prod改成dev
  42. logging:
  43. config: classpath:log4j2-dev.xml
  44. openai:
  45. chatgpt:
  46. model: gpt-3.5-turbo
  47. api:
  48. key: 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
  49. config:
  50. llm:
  51. ChatGLM3:
  52. url: http://10.58.0.2:6678
  53. ChatGLM4:
  54. url: http://47.94.251.162:6677
  55. token: seec0der
  56. modelName: glm4-9b-chat
  57. QWen14B:
  58. url: http://10.58.0.2:6679
  59. proxy:
  60. enabled: false
  61. host: 20.111.54.16
  62. port: 8090