flowable-devops/backend/src/main/resources/application.yml
dengqichen ab88ff72f2 提交
2025-10-13 23:01:56 +08:00

171 lines
4.1 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

spring:
application:
name: flowable-devops-backend
datasource:
url: ${SPRING_DATASOURCE_URL:jdbc:mysql://172.22.222.111:3306/flowable-devops?useSSL=false&allowPublicKeyRetrieval=true&serverTimezone=UTC&characterEncoding=utf8}
username: ${SPRING_DATASOURCE_USERNAME:flowable-devops}
password: ${SPRING_DATASOURCE_PASSWORD:Qichen5210523}
driver-class-name: com.mysql.cj.jdbc.Driver
hikari:
maximum-pool-size: 20
minimum-idle: 5
idle-timeout: 300000
connection-timeout: 30000
max-lifetime: 1800000
pool-name: FlowableDevOpsHikariCP
connection-test-query: SELECT 1
# JPA配置
jpa:
hibernate:
ddl-auto: update
properties:
hibernate:
dialect: org.hibernate.dialect.MySQL8Dialect
format_sql: false
show_sql: false
use_sql_comments: false
jdbc:
batch_size: 20
order_inserts: true
order_updates: true
show-sql: false
open-in-view: false
# Redis配置
data:
redis:
host: ${SPRING_REDIS_HOST:172.22.222.111}
port: ${SPRING_REDIS_PORT:6379}
password: ${SPRING_REDIS_PASSWORD:Qichen5210523...}
database: ${SPRING_REDIS_DATABASE:5}
timeout: 5000ms
lettuce:
pool:
max-active: 20
max-wait: -1ms
max-idle: 10
min-idle: 2
# JSON序列化配置
jackson:
serialization:
write-dates-as-timestamps: false
deserialization:
fail-on-unknown-properties: false
time-zone: Asia/Shanghai
date-format: yyyy-MM-dd HH:mm:ss
# WebFlux配置
webflux:
static-path-pattern: /static/**
# Flowable配置
flowable:
# 数据库配置
database-schema-update: true
db-history-used: true
database-type: mysql
# 流程引擎配置
process:
definition-cache-limit: 100
enable-safe-xml: true
# 异步执行器配置MVP阶段关闭
async:
executor:
activate: false
# REST API配置
rest:
app:
authentication-mode: verify-privilege
# 服务器配置
server:
port: ${SERVER_PORT:8080}
servlet:
context-path: /
compression:
enabled: true
mime-types: text/html,text/xml,text/plain,text/css,text/javascript,application/javascript,application/json
error:
include-stacktrace: never
include-message: always
# 日志配置
logging:
level:
root: INFO
com.flowable.devops: DEBUG
org.flowable: INFO
org.springframework: INFO
org.hibernate.SQL: ${LOG_SQL:false}
org.hibernate.type.descriptor.sql.BasicBinder: ${LOG_SQL_PARAMS:false}
com.zaxxer.hikari: INFO
pattern:
console: "%d{yyyy-MM-dd HH:mm:ss} [%thread] %-5level %logger{36} - %msg%n"
file: "%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n"
file:
name: logs/flowable-devops.log
max-size: 100MB
max-history: 30
# 管理端点配置
management:
endpoints:
web:
exposure:
include: health,info,metrics,prometheus
base-path: /actuator
endpoint:
health:
show-details: when-authorized
metrics:
enabled: true
prometheus:
metrics:
export:
enabled: true
# 应用自定义配置
flowable-devops:
# 工作流配置
workflow:
# 默认执行策略
execution-mode: sync
# 表达式引擎配置
expression:
engine: juel
enable-security: true
# 节点执行超时时间(秒)
node-timeout: 300
# 插件配置
plugins:
# 插件目录外部插件JAR存放位置
directory: ./plugins
# 是否自动加载外部插件
auto-load: true
# 是否在启动时加载默认插件
load-defaults: true
# 节点类型配置(兼容旧配置)
node-types:
# 是否在启动时加载默认节点类型
load-defaults: true
# 默认节点类型配置文件路径
default-config-path: classpath:node-types/
# 任务配置
task:
# 任务超时检查间隔(分钟)
timeout-check-interval: 60
# 默认任务优先级
default-priority: 50
# 安全配置
security:
# 是否启用认证(暂时关闭,后续可配置)
authentication-enabled: false