From ad8d9771ba5e3b4c9f606545c0663c9d0a088d2e Mon Sep 17 00:00:00 2001 From: Alexander Renz Date: Thu, 2 Jan 2025 19:56:44 +0100 Subject: [PATCH] 2.5-stable release --- LICENSE | 21 +++++++++++++++++++++ README.MD | 5 ++--- test/hmac_test.go | 2 +- 3 files changed, 24 insertions(+), 4 deletions(-) create mode 100644 LICENSE diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..860280f --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2025 Alexander Renz + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/README.MD b/README.MD index 322a5e0..e35379b 100644 --- a/README.MD +++ b/README.MD @@ -51,7 +51,6 @@ Special thanks to **Thomas Leister** for inspiration drawn from [[prosody-filer] ```bash mkdir -p /path/to/hmac-file-server/data/ mkdir -p /path/to/hmac-file-server/deduplication/ - mkdir -p /path/to/hmac-file-server/thumbnails/ mkdir -p /path/to/hmac-file-server/iso/ ``` @@ -73,7 +72,7 @@ The server is configured via a `config.toml` file. Key settings include: - **Server Settings**: Port, logging, metrics - **Security**: HMAC secret, TLS options - **File Management**: TTL, deduplication, uploads, and downloads -- **Thumbnails and ISO**: Generation and mounting settings +- **ISO**: Generation and mounting settings - **Workers**: Adjust thread management For detailed configuration options, refer to the [Wiki](./wiki.md). @@ -175,7 +174,7 @@ To build for different architectures: - **Prometheus Metrics Enhancements:** Added detailed metrics for deduplication and ISO container operations to improve monitoring and observability. - **Redis Integration Improvements:** Enhanced caching mechanisms using Redis for faster access to file metadata and application states. - **Precaching Feature:** Implemented precaching of file structures on startup to reduce access times for frequently used files. -- **Configuration Options:** Updated `config.toml` to include new settings for deduplication, thumbnails, ISO management, and worker scaling. +- **Configuration Options:** Updated `config.toml` to include new settings for deduplication, ISO management, and worker scaling. ### Changed - **Worker Pool Scaling:** Implemented dynamic adjustment of worker threads based on system resources to optimize performance. diff --git a/test/hmac_test.go b/test/hmac_test.go index 6600f6f..f9bbf37 100644 --- a/test/hmac_test.go +++ b/test/hmac_test.go @@ -16,7 +16,7 @@ import ( const ( serverURL = "http://[::1]:8080" // Replace with your actual server URL - secret = "a-orc-and-a-humans-is-drinking-ale" // Replace with your HMAC secret key + secret = "hmac-file-server-is-the-win" // Replace with your HMAC secret key uploadPath = "hmac_icon.png" // Test file to upload protocolType = "v2" // Use v2, v, or token as needed )