74 lines
2.0 KiB
YAML
74 lines
2.0 KiB
YAML
# Author: fruit.com.cn
|
||
|
||
server:
|
||
port: 8081
|
||
|
||
spring:
|
||
application:
|
||
name: fruitshorts-app-api
|
||
autoconfigure:
|
||
exclude: org.springframework.boot.autoconfigure.security.servlet.UserDetailsServiceAutoConfiguration
|
||
datasource:
|
||
driver-class-name: org.postgresql.Driver
|
||
url: jdbc:postgresql://127.0.0.1:5432/fruitshorts
|
||
username: ${DB_USER:fruitshorts}
|
||
password: ${DB_PASSWORD:fruitshorts}
|
||
jackson:
|
||
date-format: yyyy-MM-dd HH:mm:ss
|
||
time-zone: Asia/Shanghai
|
||
|
||
mybatis-plus:
|
||
configuration:
|
||
map-underscore-to-camel-case: true
|
||
global-config:
|
||
banner: false
|
||
db-config:
|
||
# 主键由应用侧雪花算法生成(S0),数据库不再自增
|
||
id-type: assign_id
|
||
logic-delete-field: deleted
|
||
logic-delete-value: 1
|
||
logic-not-delete-value: 0
|
||
sequence:
|
||
# 单机开发用固定值;上多实例前必须改成按实例分配(环境变量注入),否则会撞 ID
|
||
worker-id: 1
|
||
datacenter-id: 1
|
||
|
||
springdoc:
|
||
swagger-ui:
|
||
path: /doc.html
|
||
api-docs:
|
||
path: /v3/api-docs
|
||
|
||
fruitshorts:
|
||
interaction:
|
||
# MACHINE_FIRST:机审通过即发布,命中 REVIEW 级敏感词才转人工
|
||
# PRE_REVIEW :全部先审后发(生产建议)
|
||
comment-audit-mode: MACHINE_FIRST
|
||
comment-max-length: 500
|
||
comment-per-minute: 5
|
||
download:
|
||
# 这些值会通过 /app/downloads/policy 下发给客户端,改这里不用发版
|
||
max-per-device: 20
|
||
license-days: 30
|
||
wifi-only-default: true
|
||
max-quality: AUTO
|
||
media:
|
||
root-dir: ./data/uploads
|
||
public-prefix: /files
|
||
chunk-size: 5242880
|
||
max-file-size: 2147483648
|
||
jwt:
|
||
admin-secret: ${JWT_ADMIN_SECRET:fruitshorts-admin-dev-secret-change-me-in-production-32b}
|
||
admin-ttl-hours: 12
|
||
cors:
|
||
allowed-origins: "*"
|
||
|
||
# 接口文档:/doc.html 打开 Swagger UI,/v3/api-docs 是机器可读契约(前端联调按它写)
|
||
springdoc:
|
||
swagger-ui:
|
||
path: /doc.html
|
||
|
||
logging:
|
||
level:
|
||
com.fruitshorts: info
|