64 lines
1.6 KiB
YAML
64 lines
1.6 KiB
YAML
server:
|
|
port: ${SERVER_PORT:${PORT:8993}}
|
|
spring:
|
|
application:
|
|
name: community-api
|
|
profiles:
|
|
default: test
|
|
sql:
|
|
init:
|
|
mode: never
|
|
servlet:
|
|
multipart:
|
|
max-file-size: 10MB
|
|
max-request-size: 52MB
|
|
jackson:
|
|
time-zone: UTC
|
|
main:
|
|
banner-mode: off
|
|
mybatis-plus:
|
|
configuration:
|
|
map-underscore-to-camel-case: true
|
|
community:
|
|
oss:
|
|
enabled: ${OSS_ENABLED:true}
|
|
region: ${OSS_REGION:cn-beijing}
|
|
bucket: ${OSS_BUCKET:linkerbot}
|
|
access-key-id: ${OSS_ACCESS_KEY_ID:}
|
|
access-key-secret: ${OSS_ACCESS_KEY_SECRET:}
|
|
public-base-url: ${OSS_PUBLIC_BASE_URL:https://linkerbot.oss-cn-beijing.aliyuncs.com}
|
|
ai:
|
|
enabled: ${AI_ENABLED:true}
|
|
api-key: ${ARK_API_KEY:}
|
|
model: ${ARK_MODEL:doubao-seed-2-1-lite-260915}
|
|
endpoint: ${ARK_ENDPOINT:https://ark.cn-beijing.volces.com/api/v3/responses}
|
|
request-timeout: ${AI_REQUEST_TIMEOUT:30s}
|
|
search-timeout: ${AI_SEARCH_TIMEOUT:65s}
|
|
heartbeat-interval: 10s
|
|
max-concurrent: ${AI_MAX_CONCURRENT:4}
|
|
requests-per-minute: ${AI_REQUESTS_PER_MINUTE:10}
|
|
types:
|
|
GENERAL: 通用
|
|
HUMANOID: 人形
|
|
QUADRUPED: 四足
|
|
WHEELED: 轮式
|
|
captcha-ttl: 2m
|
|
token-ttl: 24h
|
|
max-text-bytes: 1048576
|
|
max-file-bytes: 10485760
|
|
max-request-bytes: 52428800
|
|
gitea:
|
|
connect-timeout: 5s
|
|
request-timeout: 30s
|
|
springdoc:
|
|
swagger-ui:
|
|
path: /swagger-ui.html
|
|
logging:
|
|
file:
|
|
path: ${LOG_PATH:logs}
|
|
level:
|
|
root: INFO
|
|
# 测试环境开启项目 DEBUG 时,仍不输出 SQL 参数或完整请求内容。
|
|
com.linkerbot.community.service.mapper: INFO
|
|
org.springframework.web: INFO
|