Files
FileRelay/config/config.yaml

37 lines
915 B
YAML

site:
name: 文件暂存柜
description: 临时文件中转服务
logo: "https://www.hxuanyu.com/upload/favicon.png"
security:
admin_password_hash: $2a$10$Bm0TEmU4uj.bVHYiIPFBheUkcdg6XHpsanLvmpoAtgU1UnKbo9.vy
pickup_code_length: 6
pickup_fail_limit: 5
jwt_secret: file-relay-secret
upload:
max_file_size_mb: 100
max_batch_files: 20
max_retention_days: 30
require_token: false
storage:
type: local
local:
path: storage_data_test
webdav:
url: https://dav.example.com
username: user
password: pass
root: /file-relay
s3:
endpoint: s3.amazonaws.com
region: us-east-1
access_key: your-access-key
secret_key: your-secret-key
bucket: file-relay-bucket
use_ssl: false
api_token:
enabled: true
allow_admin_api: true
max_tokens: 20
database:
path: file_relay.db