Files
label_backend/src/main/resources/application.yml

83 lines
1.8 KiB
YAML
Raw Normal View History

server:
port: 8080
spring:
application:
name: label-backend
datasource:
2026-04-14 18:36:28 +08:00
url: ${SPRING_DATASOURCE_URL:jdbc:postgresql://39.107.112.174:5432/labeldb}
2026-04-13 18:22:40 +08:00
username: ${SPRING_DATASOURCE_USERNAME:postgres}
2026-04-14 18:36:28 +08:00
password: ${SPRING_DATASOURCE_PASSWORD:postgres!Pw}
driver-class-name: org.postgresql.Driver
hikari:
maximum-pool-size: 20
minimum-idle: 5
connection-timeout: 30000
data:
redis:
2026-04-14 20:45:23 +08:00
host: ${SPRING_DATA_REDIS_HOST:39.107.227.165}
port: ${SPRING_DATA_REDIS_PORT:6379}
2026-04-14 18:36:28 +08:00
password: ${SPRING_DATA_REDIS_PASSWORD:jsti@2024}
timeout: 5000ms
lettuce:
pool:
max-active: 8
max-idle: 8
min-idle: 0
jackson:
default-property-inclusion: non_null
serialization:
write-dates-as-timestamps: false
mvc:
pathmatch:
2026-04-14 16:33:34 +08:00
matching-strategy: ant_path_matcher
springdoc:
api-docs:
enabled: true
path: /v3/api-docs
swagger-ui:
enabled: true
path: /swagger-ui.html
mybatis-plus:
mapper-locations: classpath*:mapper/**/*.xml
2026-04-14 16:33:34 +08:00
type-aliases-package: com.label.entity
configuration:
map-underscore-to-camel-case: true
log-impl: org.apache.ibatis.logging.slf4j.Slf4jImpl
global-config:
db-config:
id-type: auto
rustfs:
2026-04-14 18:36:28 +08:00
endpoint: ${RUSTFS_ENDPOINT:http://39.107.112.174:9000}
2026-04-13 18:22:40 +08:00
access-key: ${RUSTFS_ACCESS_KEY:admin}
2026-04-14 18:36:28 +08:00
secret-key: ${RUSTFS_SECRET_KEY:your_strong_password}
region: us-east-1
ai-service:
base-url: ${AI_SERVICE_BASE_URL:http://localhost:8000}
2026-04-14 16:33:34 +08:00
timeout: 30000
2026-04-14 16:33:34 +08:00
auth:
2026-04-14 18:36:28 +08:00
enabled: false
2026-04-14 16:33:34 +08:00
mock-company-id: 1
mock-user-id: 1
mock-role: ADMIN
mock-username: mock
token:
2026-04-14 16:33:34 +08:00
ttl-seconds: 7200
video:
2026-04-14 16:33:34 +08:00
callback-secret: ${VIDEO_CALLBACK_SECRET:}
logging:
level:
com.label: INFO
com.baomidou.mybatisplus: INFO