application.yml 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. spring:
  2. servlet:
  3. multipart:
  4. max-file-size: 10MB
  5. application:
  6. name: knowledge-base
  7. profiles:
  8. active: dev
  9. data:
  10. redis:
  11. database: 0
  12. timeout: 10s
  13. password: Taohongrun0
  14. repositories:
  15. enabled: false
  16. lettuce:
  17. pool:
  18. max-active: 200
  19. max-wait: -1ms
  20. max-idle: 10
  21. min-idle: 03306
  22. host: 58.87.69.234
  23. port: 6379
  24. datasource:
  25. url: jdbc:mysql://58.87.69.234:3306/web
  26. username: web
  27. password: pAFB7iYzLpj5dxSS
  28. driver-class-name: com.mysql.cj.jdbc.Driver
  29. neo4j:
  30. authentication:
  31. username: neo4j
  32. password: neo4j
  33. uri: bolt://58.87.69.234:7687
  34. ai:
  35. # 阿里灵积
  36. dash-scope:
  37. api-key: sk-375aa80dcb56402db68857b31846b1bb
  38. chat:
  39. options:
  40. model: qwen-max
  41. # 多模态图片理解需要开启
  42. # multi-model: true
  43. embedding:
  44. options:
  45. model: text-embedding-v2
  46. image:
  47. options:
  48. model: wanx-v1
  49. # 百度千帆 需要在pom.xml中放开qianfan starter的注释
  50. qian-fan:
  51. api-key: xxx
  52. secret-key: xxx
  53. # openai 需要在pom.xml中放开openai starter的注释
  54. # 智谱清言 同样
  55. zhipuai:
  56. api-key: xxx
  57. # kimi 同样
  58. moonshot:
  59. api-key: xxx
  60. ollama:
  61. # 填写模型所在的地址
  62. base-url: http://localhost:11434
  63. chat:
  64. model: xxx
  65. openai:
  66. api-key: sk-5838851591be416097aaeb5d732037b2
  67. base-url: https://api.deepseek.com
  68. chat:
  69. options:
  70. model: deepseek-chat
  71. embedding:
  72. options:
  73. model: text-embedding-v2
  74. image:
  75. options:
  76. model: wanx-v1
  77. vectorstore:
  78. redis:
  79. initialize-schema: true
  80. code-assistant:
  81. project:
  82. project-path: F:\workspace\code\opensource\dive-into-spring-ai
  83. arthas:
  84. url: http://localhost:8563/api
  85. password: arthas
  86. username: arthas
  87. server:
  88. port: 9902
  89. sa-token:
  90. # token名称 (同时也是cookie名称)
  91. token-name: token
  92. # token有效期,单位s 默认30天, -1代表永不过期
  93. timeout: 2592000
  94. # token临时有效期 (指定时间内无操作就视为token过期) 单位: 秒
  95. active-timeout: -1
  96. # 是否允许同一账号并发登录 (为true时允许一起登录, 为false时新登录挤掉旧登录)
  97. is-concurrent: true
  98. # 在多人登录同一账号时,是否共用一个token (为true时所有登录共用一个token, 为false时每次登录新建一个token)
  99. is-share: true
  100. # token风格
  101. token-style: uuid
  102. # 是否输出操作日志
  103. is-log: true
  104. # 自动续签
  105. auto-renew: true
  106. oss:
  107. provider: ali_yun
  108. # 阿里云oss配置
  109. ali-yun:
  110. access-key-id: xxx
  111. access-key-secret: xxx
  112. endpoint: xxx
  113. bucket-name: xxx
  114. # 腾讯云oss配置
  115. tencent:
  116. bucket: xx
  117. region: xx
  118. secret-id: xx
  119. secret-key: xx
  120. jimmer:
  121. dialect: org.babyfish.jimmer.sql.dialect.MySqlDialect
  122. show-sql: true
  123. pretty-sql: true
  124. client:
  125. ts:
  126. path: /ts.zip
  127. openapi:
  128. path: /openapi
  129. ui-path: /openapi-ui