60 lines
1.4 KiB
YAML
60 lines
1.4 KiB
YAML
Service: files
|
|
Port: 12452
|
|
BindIP: 127.0.0.1
|
|
SecretKey: ${FILES_SERVICE_SECRET}
|
|
|
|
Databases:
|
|
Driver: postgres
|
|
Source:
|
|
- "${OPS_FILES_DB_DSN}"
|
|
|
|
Cache: ${OPS_CACHE_DSN}
|
|
|
|
MicroService:
|
|
Enable: false
|
|
Anonymous:
|
|
- files.ping.hello
|
|
|
|
ServiceClients:
|
|
assets: ${ASSETS_FILES_SECRET}
|
|
dc-control: ${DC_CONTROL_FILES_SECRET}
|
|
visual: ${VISUAL_FILES_SECRET}
|
|
|
|
Storage:
|
|
Provider: ${FILES_STORAGE_PROVIDER}
|
|
ExternalBaseURL: ${FILES_PUBLIC_BASE_URL}
|
|
AccessTTLSeconds: 600
|
|
SigningSecret: ${FILES_STORAGE_SIGNING_SECRET}
|
|
Local:
|
|
RootPath: ${FILES_LOCAL_ROOT}
|
|
MinimumFreeSpaceMB: 10240
|
|
Aliyun:
|
|
Endpoint: ${FILES_OSS_ENDPOINT}
|
|
Region: ${FILES_OSS_REGION}
|
|
Bucket: ${FILES_OSS_BUCKET}
|
|
AccessKeyID: ${FILES_OSS_ACCESS_KEY_ID}
|
|
AccessKeySecret: ${FILES_OSS_ACCESS_KEY_SECRET}
|
|
|
|
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
|