<?xml version="1.0" encoding="UTF-8"?>
<!-- 文件管理与预览系统核心配置文件 -->
<filePreviewSystemConfig>
<!-- 系统基础信息 -->
<systemInfo>
<name>FileManagerPro</name>
<version>1.0.0</version>
<description>支持多格式文件解析、预览与管理的全栈系统</description>
<author>FullStackDev</author>
</systemInfo>
<!-- 支持的文件类型配置 -->
<supportedFileTypes>
<!-- 文档类 -->
<fileType category="document">
<extensions>docx,xlsx,pptx,pdf,txt</extensions>
<previewEngine>LibreOffice+PDF.js</previewEngine>
<maxSize>50MB</maxSize>
<isCacheable>true</isCacheable>
</fileType>
<!-- 压缩包类 -->
<fileType category="archive">
<extensions>zip,rar,7z,tgz</extensions>
<previewEngine>Python Unzip+Directory Listing</previewEngine>
<maxSize>200MB</maxSize>
<isCacheable>false</isCacheable>
<extractTempPath>/tmp/file_preview/extract</extractTempPath>
</fileType>
<!-- 音视频类 -->
<fileType category="media">
<extensions>mp4,avi,mp3,wav</extensions>
<previewEngine>FFmpeg+HTML5 Media Player</previewEngine>
<maxSize>500MB</maxSize>
<isCacheable>true</isCacheable>
<streaming>true</streaming>
</fileType>
</supportedFileTypes>
<!-- 存储路径配置 -->
<storageConfig>
<localStorage>
<rootPath>/data/file_storage</rootPath>
<backupPath>/data/backup/file_storage</backupPath>
<backupInterval>24h</backupInterval>
</localStorage>
<enableCloudStorage>false</enableCloudStorage>
</storageConfig>
<!-- 预览服务配置 -->
<previewService>
<port>8082</port>
<timeout>30s</timeout>
<maxConcurrent>100</maxConcurrent>
<allowedOrigins>http://localhost:8080,https://your-domain.com</allowedOrigins>
</previewService>
<!-- 日志配置 -->
<logConfig>
<level>INFO</level>
<path>/var/log/file_preview_system</path>
<maxFileSize>100MB</maxFileSize>
<maxBackupCount>10</maxBackupCount>
</logConfig>
</filePreviewSystemConfig>