Files
files/etc/files_test.yaml

60 lines
1.4 KiB
YAML
Raw Normal View History

Service: files
Port: 12452
2026-09-09 16:42:21 +08:00
BindIP: 127.0.0.1
SecretKey: ops-files
Databases:
Driver: postgres
Source:
- host=8.137.107.29 user=postgres password=Weidong2023~! dbname=ops_dev port=19432 sslmode=disable TimeZone=Asia/Shanghai
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}
2026-09-09 16:42:21 +08:00
Storage:
Provider: local
ExternalBaseURL: http://127.0.0.1:12452/Files
AccessTTLSeconds: 600
SigningSecret: local-test-files-signing-secret
Local:
RootPath: D:/work/ops/.data/files-test
MinimumFreeSpaceMB: 1
Aliyun:
Endpoint: ""
Region: ""
Bucket: ""
AccessKeyID: ""
AccessKeySecret: ""
Namespaces:
2026-09-09 16:42:21 +08:00
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
2026-09-09 16:42:21 +08:00
IntegrityIntervalSeconds: 3600
IntegrityBatchSize: 100