刘光辉
2 小时以前 06f314545ac3514d7ce28939920866ae8188d31c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
# DMS 专属共享配置入口。
logging:
  level:
    # Keep expiry scan/results observable when the shared root logger is ERROR.
    jnpf.dmsService.expiry.DmsFileExpiryJob: INFO
 
dubbo:
  application:
    qos-enable: false
 
audit:
  enabled: true
  # Production deployments should mount JNPF_DATA_DIR on persistent storage.
  spool-dir: ${JNPF_DATA_DIR:/data/jnpf}/audit-spool/jnpf-dms
  spool-replay-enabled: true
  spool-replay-interval-ms: 300000
 
dms:
  pdf-generation:
    worker-enabled: ${DMS_PDF_GENERATION_WORKER_ENABLED:false}
    backfill-enabled: ${DMS_PDF_GENERATION_BACKFILL_ENABLED:false}
    cron: "*/30 * * * * ?"
    batch-size: 20
    max-attempts: 8
    lease-seconds: 300
  qianpiye:
    # Additional workflows require configuration only; field catalogs follow their published forms.
    flows:
      - key: new
        label: 文件新增
        template-id: "861596317091161157"
      - key: revision
        label: 文件修订
        template-id: "861595229554271301"
  expiry:
    # Natural expiry runs automatically; only scheduling and batch sizing are configurable.
    cron: "0 * * * * ?"
    batch-size: 100
    max-pages: 100
    cleanup-retry-seconds: 60
  approved-files:
    # 联调期间每分钟重试,临时忽略退避时间;租约与正式生效日期仍有效。
    # 设置为 true 可恢复原指数退避。
    retry-backoff-enabled: ${DMS_APPROVED_FILES_RETRY_BACKOFF_ENABLED:false}
  disable-occupancy:
    enabled: true
  approved-disable:
    enabled: true
  invalidation:
    enabled: ${DMS_INVALIDATION_ENABLED:false}
    all-batches: ${DMS_INVALIDATION_ALL_BATCHES:false}
    # Comma-separated tenantId:batchId entries; empty means no batch is executable.
    allowed-batches: ${DMS_INVALIDATION_ALLOWED_BATCHES:}
  record-print:
    bill-rule-code: jiluDayinLiushuihao
    max-serial-count: 999
    reservation-ttl-minutes: 30
    confirmed-result-ttl-hours: 0
  imbalance:
    retry:
      # 先应用补偿记录表迁移并完成原生保存链路验收,再在目标环境启用。
      enabled: ${DMS_IMBALANCE_RETRY_ENABLED:false}
      cron: "0 */5 * * * ?"
      batch-size: 100
      max-attempts: 5
  permission:
    admin-role-code: DMS.PERMISSION.ADMIN
    max-grant-batch-size: 500
    max-decision-batch-size: 200
    max-user-folder-tree-users: 50
    default-page-size: 20
    max-page-size: 100
    max-permission-group-scan: 1000
    # 生产环境必须通过环境变量覆盖;游标签名用于拒绝篡改和跨用户、跨目录重放。
    cursor-signing-secret: ${DMS_CURSOR_SIGNING_SECRET:your-cursor-signing-key}
    # 必须显式填写实际调用方的 spring.application.name,不允许通配符。
    resource-registration-service-ids:
      - jnpf-file
      - jnpf-flowable
  search:
    enabled: ${DMS_SEARCH_ENABLED:false}
    redis-queue-key: dms:search:index:tasks
    redis-poll-timeout-seconds: 5
    max-attempts: 3
    max-file-bytes: 104857600
    max-text-chars: 5000000
    min-pdf-text-chars-per-page: 20
    ocr:
      enabled: ${DMS_SEARCH_OCR_ENABLED:false}
      provider: ${DMS_SEARCH_OCR_PROVIDER:}
    meilisearch:
      base-url: ${DMS_MEILISEARCH_URL:http://127.0.0.1:7700}
      api-key: ${DMS_MEILISEARCH_API_KEY:}
      index-name: ${DMS_MEILISEARCH_INDEX_NAME:dms_documents}
      connect-timeout-ms: 3000
      read-timeout-ms: 10000