application.yaml 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  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. #redis配置更新
  26. redis:
  27. host: 8.130.28.19
  28. port: 6378
  29. password: eai123456
  30. mail:
  31. host: smtp.163.com
  32. port: 25
  33. username: seecoder2022@163.com # Seecoder的公共邮箱
  34. password: WEIHUIOOJYUFMZGV # 邮箱开启stmp的秘钥
  35. default-encoding: UTF-8
  36. servlet:
  37. multipart:
  38. # 单个文件最大大小
  39. max-file-size: 500MB
  40. # 所有上传文件最大大小
  41. max-request-size: 500MB
  42. mvc:
  43. async:
  44. request-timeout: 300000
  45. # MyBatis配置
  46. mybatis-plus:
  47. mapper-locations: classpath:mapper/*.xml
  48. type-aliases-package: com/njuzr/eaibackend/po
  49. jwt:
  50. # jjwt密钥算法HS256,要求secret长度至少是256位
  51. secret: UenM4KGb6DskRWUenM4KGb6DskRWUenM4KGb6DskRWUenM4KGb6DskRWUenM4KGb6DskRWUenM4KGb6DskRWUenM4KGb6DskRWUenM4KGb6DskRWUenM4KGb6DskRW
  52. issuer: eai
  53. expiration: 86400
  54. portal-sync:
  55. enabled: true
  56. throttle-seconds: 60
  57. aliyun:
  58. oss:
  59. endpoint: oss-cn-shanghai.aliyuncs.com
  60. accessKeyId: LTAI5tAbkw8rkreiJbfcY1jZ
  61. accessKeySecret: 2yvtVYE1qAZEgm0ChvdMqhp0LhB5Lj
  62. bucketName: eai-files
  63. logging:
  64. config: classpath:log4j2-dev.xml
  65. openai:
  66. chatgpt:
  67. model: gpt-3.5-turbo
  68. api:
  69. key: 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
  70. config:
  71. llm:
  72. ChatGLM3:
  73. url: http://10.58.0.2:6678
  74. ChatGLM4:
  75. url: http://47.94.251.162:6678
  76. token: seec0der
  77. modelName: glm4-9b-chat
  78. QWen14B:
  79. url: http://10.58.0.2:6679
  80. PreSentenceWorkflowChatGLM4:
  81. url: https://dify.seec.seecoder.cn/v1/workflows/run
  82. token: app-6hPbwfdQdEDZ8c81oh62avyS
  83. doubao:
  84. ark:
  85. api-key: c87a7b2f-33d1-45d5-9a08-d36d2204f05c
  86. endpoint-id: ep-20251109002134-fcpkl
  87. xunfei:
  88. ark:
  89. app-id: fdf4a5d8
  90. api-key: 9d44aad124b15562cd36f1c69f907c23
  91. api-secret: MWZkZTM5ZjMwMGJkNjJkM2NmNjJjMjI3
  92. proxy:
  93. enabled: false
  94. host: 20.111.54.16
  95. port: 8123
  96. springdoc:
  97. api-docs:
  98. enabled: true
  99. path: /doc/v3/api-docs
  100. swagger-ui:
  101. enabled: true
  102. path: /doc/swagger/swagger-ui.html
  103. packagesToScan: com.njuzr.eaibackend.controller
  104. portal:
  105. base-url: https://p-nju.seec.seecoder.cn
  106. batch-register-path: /api/user/register/batch/internal