application.yaml 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  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://8.130.28.19:3306/eai?useSSL=false&serverTimezone=UTC&useUnicode=true&characterEncoding=utf8&allowPublicKeyRetrieval=true
  10. hikari:
  11. maximum-pool-size: 30
  12. minimum-idle: 10
  13. connection-timeout: 10000
  14. validation-timeout: 3000
  15. idle-timeout: 600000
  16. # Keep maxLifetime shorter than MySQL wait_timeout to avoid stale pooled connections.
  17. max-lifetime: 240000
  18. keepalive-time: 120000
  19. leak-detection-threshold: 30000
  20. # url: jdbc:mysql://127.0.0.1:3306/eai?useSSL=false&serverTimezone=UTC&useUnicode=true&characterEncoding=utf8&allowPublicKeyRetrieval=true
  21. data:
  22. mongodb:
  23. uri: mongodb://admin:eai123456@8.130.28.19:27017/eai?authSource=admin
  24. authentication-database: admin
  25. auto-index-creation: true
  26. #redis配置更新
  27. redis:
  28. host: 8.130.28.19
  29. port: 6378
  30. password: eai123456
  31. mail:
  32. host: smtp.163.com
  33. port: 25
  34. username: seecoder2022@163.com # Seecoder的公共邮箱
  35. password: WEIHUIOOJYUFMZGV # 邮箱开启stmp的秘钥
  36. default-encoding: UTF-8
  37. servlet:
  38. multipart:
  39. # 单个文件最大大小
  40. max-file-size: 500MB
  41. # 所有上传文件最大大小
  42. max-request-size: 500MB
  43. mvc:
  44. async:
  45. request-timeout: 300000
  46. # MyBatis配置
  47. mybatis-plus:
  48. mapper-locations: classpath:mapper/*.xml
  49. type-aliases-package: com/njuzr/eaibackend/po
  50. jwt:
  51. # jjwt密钥算法HS256,要求secret长度至少是256位
  52. secret: UenM4KGb6DskRWUenM4KGb6DskRWUenM4KGb6DskRWUenM4KGb6DskRWUenM4KGb6DskRWUenM4KGb6DskRWUenM4KGb6DskRWUenM4KGb6DskRWUenM4KGb6DskRW
  53. issuer: eai
  54. expiration: 86400
  55. portal-sync:
  56. enabled: true
  57. throttle-seconds: 60
  58. # DeepSeek AI 配置
  59. deepseek:
  60. api-key: sk-994409a3b69648de8171be819274fc98
  61. base-url: https://api.deepseek.com/v1
  62. model: deepseek-chat
  63. timeout: 60000
  64. aliyun:
  65. oss:
  66. endpoint: oss-cn-shanghai.aliyuncs.com
  67. accessKeyId: LTAI5tAbkw8rkreiJbfcY1jZ
  68. accessKeySecret: 2yvtVYE1qAZEgm0ChvdMqhp0LhB5Lj
  69. bucketName: eai-files
  70. logging:
  71. config: classpath:log4j2-dev.xml
  72. openai:
  73. chatgpt:
  74. model: gpt-3.5-turbo
  75. api:
  76. key: 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
  77. config:
  78. llm:
  79. ChatGLM3:
  80. url: http://10.58.0.2:6678
  81. ChatGLM4:
  82. url: http://47.94.251.162:6678
  83. token: seec0der
  84. modelName: glm4-9b-chat
  85. QWen14B:
  86. url: http://10.58.0.2:6679
  87. PreSentenceWorkflowChatGLM4:
  88. url: https://dify.seec.seecoder.cn/v1/workflows/run
  89. token: app-6hPbwfdQdEDZ8c81oh62avyS
  90. doubao:
  91. ark:
  92. api-key: c87a7b2f-33d1-45d5-9a08-d36d2204f05c
  93. endpoint-id: ep-20251109002134-fcpkl
  94. xunfei:
  95. ark:
  96. app-id: fdf4a5d8
  97. api-key: 9d44aad124b15562cd36f1c69f907c23
  98. api-secret: MWZkZTM5ZjMwMGJkNjJkM2NmNjJjMjI3
  99. proxy:
  100. enabled: false
  101. host: 20.111.54.16
  102. port: 8123
  103. springdoc:
  104. api-docs:
  105. enabled: true
  106. path: /doc/v3/api-docs
  107. swagger-ui:
  108. enabled: true
  109. path: /doc/swagger/swagger-ui.html
  110. packagesToScan: com.njuzr.eaibackend.controller
  111. portal:
  112. base-url: https://p-nju.seec.seecoder.cn
  113. batch-register-path: /api/user/register/batch/internal