📝 Update readme

This commit is contained in:
LittleSheep 2024-12-14 12:43:22 +08:00
parent f1a8247c2d
commit a8a2eace8a
2 changed files with 5 additions and 40 deletions

View File

@ -1,24 +1,4 @@
# Hypernet.Reader # HyperNet.Reader
Reader is the unified attachment service for all hypernet services. Reader is the way HyperNet dealing with the
It contains file metadata compute, instant upload, calculating hashing, multi destination, media info and more features! link expand and fetching external metadata
## Features
Reader store and processing uploaded files with pipeline flow.
When a user try to upload files. The file will store in local first for media processing.
Then the server will publish a message into the message queue.
And the background consumer will start dealing with the uploaded files.
The background consumer will hash the file and merge the files with same hashcode.
The background consumer will decode the image and generate ratio and read more info from image file too.
After the processing done. The consumer will upload the file to the permanent storage like a s3 bucket and remove local cache.
While the processing, the file record in database will marked to the temporary and load file from the temporary storage.
When the processing done, the file record will be updated.
### Supported Destinations
- Local filesystem
- S3 compilable bucket

View File

@ -1,28 +1,13 @@
id = "reader01" id = "reader01"
bind = "0.0.0.0:8004" bind = "0.0.0.0:8005"
grpc_bind = "0.0.0.0:7004"/Volumes/video/Anime/Oshi no Ko/Season 1/Oshi no Ko S01E10.ass grpc_bind = "0.0.0.0:7005"
nexus_addr = "localhost:7001" nexus_addr = "localhost:7001"
[workers]
files_deletion = 4
files_analyze = 4
[debug] [debug]
database = true database = true
print_routes = false print_routes = false
[performance]
file_chunk_size = 26214400
[[destinations]]
type = "local"
path = "uploads"
[[destinations]]
type = "local"
path = "uploads/permanent"
access_baseurl = "http://192.168.50.133:8004"
[security] [security]
internal_public_key = "keys/internal_public_key.pem" internal_public_key = "keys/internal_public_key.pem"