Files
logfiledown/src/main/resources/app.yml
T
lianlonggangandClaude 433ea5a995 feat: 支持多系统独立认证与日志下载
- 删除 BaseConfig,认证信息并入 LogFileConfig.SystemItem
- 每个系统独立配置用户名/密码/RSA公钥/网关地址/登录路径
- 支持 subPath 自定义每个系统的存储子目录
- 文件路径隔离:{path}/{subPath}/{serviceName}
- 单个系统登录/下载失败不影响其他系统

Co-Authored-By: Claude <noreply@anthropic.com>
2026-06-15 16:09:43 +08:00

48 lines
2.0 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.
solon.config.load:
- "conf/app-xj.yml"
solon.logging.appender:
console:
pattern: "%d{yyyy-MM-dd HH:mm:ss.SSS} %highlight(%-5level) %magenta(${PID:-}) --- %-15([%15.15thread]) %-56(%cyan(%-40.40logger{39}%L)) : %msg%n"
file:
pattern: "%d{yyyy-MM-dd HH:mm:ss.SSS} %-5level ${PID:-} --- %-15([%15.15thread]) %-56(%-40.40logger{39}%L) : %msg%n"
enable: true #是否启用
extension: ".log" #v2.2.18 后支持(例:.log, .log.gz, .log.zip
maxFileSize: "10 MB"
maxHistory: "7" #单位:天
solon.scheduling.job:
downFileJob:
cron: "0 30 * * * ?" # 每小时的第30分钟执行
zone: "+08"
fixedRate: 0
# 任务间隔时间:1小时
fixedDelay: 0
initialDelay: 0
enable: true #用任务进行启停控制
# 多系统日志下载配置
file:
path: D:/xjlogs
systems:
- name: 健康管理系统
subPath: health # 自定义存储子目录(相对于 file.path),不配则默认用 name
username: admin
password: "#fCjW%x2dv@a"
publicKey: "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCmZfR/bA9X3vp86y1aEpvwzXJYKRRF1fLau2+05/ZtaITLpV8bhkmSf3neSy/Q9gAdvG75Fr73E+GWE+K5b0BpvIS1jDGo319+PpZR39SaZTKZ27XFXrosmJTZutN79t819HS1VseleunHAFgMVufE9U5jP6LGzl/wbkSy01GhzwIDAQAB"
gatewayUrl: https://api-jkglpt.iosp.ydpt.tech
loginPath: /sys/mLogin
services:
- name: health-system
insCount: 2
- name: 健康监测系统
subPath: datacenter # 自定义存储子目录(相对于 file.path),不配则默认用 name
username: admin
password: Aa135790!123
publicKey: "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDbc+/BMkhCHZ5RDj6r4TXsFQJwP7HUd8qq+6wXo1KuvE6B1/9JmM7pNThmnkebSa+yP1ECa/H/QCSSKKHBb1JUeHKwUymvxVd78DPOanshqiAKSf+1bKx4g1OMT/5DPTn5Dg0lH5t4wvnUIpWM/7XH0Y1NWsgF5r8C90I3QcBkOwIDAQAB"
gatewayUrl: https://dcapi-jkglpt.iosp.ydpt.tech
loginPath: /sys/getToken
services:
- name: jeecg-system
insCount: 1
# - health-watch