Files
files/etc/files_dev.yaml
2026-09-09 16:42:21 +08:00

60 lines
1.3 KiB
YAML

Service: files
Port: 12452
BindIP: 0.0.0.0
SecretKey: ops-files
Databases:
Driver: postgres
Source:
- "${OPS_FILES_DB_DSN}"
Cache: redis://null:Weidong2023~!@8.137.107.29:19379/
MicroService:
Enable: false
Anonymous:
- files.ping.hello
ServiceClients:
assets: ${ASSETS_FILES_SECRET}
dc-control: ${DC_CONTROL_FILES_SECRET}
visual: ${VISUAL_FILES_SECRET}
Storage:
Provider: local
ExternalBaseURL: http://127.0.0.1:12452/Files
AccessTTLSeconds: 600
SigningSecret: local-dev-files-signing-secret
Local:
RootPath: D:/work/ops/.data/files
MinimumFreeSpaceMB: 1024
Aliyun:
Endpoint: ""
Region: ""
Bucket: ""
AccessKeyID: ""
AccessKeySecret: ""
Namespaces:
device-config-backups:
Prefix: device-config-backups
MaxSizeMB: 1
AllowedExtensions: [.txt]
reports:
Prefix: reports
MaxSizeMB: 512
AllowedExtensions: [.csv, .xlsx, .json, .pdf, .zip]
assets:
Prefix: assets
MaxSizeMB: 50
AllowedExtensions: [.png, .jpg, .jpeg, .webp, .gif, .svg, .pdf, .doc, .docx, .xls, .xlsx]
visual:
Prefix: visual
MaxSizeMB: 100
AllowedExtensions: [.png, .jpg, .jpeg, .webp, .gif, .svg, .json, .zip, .glb, .gltf]
Cleanup:
IntervalSeconds: 600
IntegrityIntervalSeconds: 3600
IntegrityBatchSize: 100