From a8a2eace8a7be831af0e8b7d65e3f39d6ac37277 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Sat, 14 Dec 2024 12:43:22 +0800 Subject: [PATCH] :memo: Update readme --- README.md | 26 +++----------------------- settings.toml | 19 ++----------------- 2 files changed, 5 insertions(+), 40 deletions(-) diff --git a/README.md b/README.md index 8bc6fff..cb1ee10 100644 --- a/README.md +++ b/README.md @@ -1,24 +1,4 @@ -# Hypernet.Reader +# HyperNet.Reader -Reader is the unified attachment service for all hypernet services. -It contains file metadata compute, instant upload, calculating hashing, multi destination, media info and more features! - -## 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 +Reader is the way HyperNet dealing with the +link expand and fetching external metadata diff --git a/settings.toml b/settings.toml index 470e9e9..cd09166 100644 --- a/settings.toml +++ b/settings.toml @@ -1,28 +1,13 @@ id = "reader01" -bind = "0.0.0.0:8004" -grpc_bind = "0.0.0.0:7004"/Volumes/video/Anime/Oshi no Ko/Season 1/Oshi no Ko S01E10.ass +bind = "0.0.0.0:8005" +grpc_bind = "0.0.0.0:7005" nexus_addr = "localhost:7001" -[workers] -files_deletion = 4 -files_analyze = 4 - [debug] database = true 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] internal_public_key = "keys/internal_public_key.pem"