README.MD aktualisiert
This commit is contained in:
parent
95cbd11ba3
commit
a4532c0855
74
README.MD
74
README.MD
@ -75,7 +75,7 @@ Set `thumbnail` to true in the `[server]` section of `config.toml` to enable ima
|
|||||||
|
|
||||||
### Deduplication
|
### Deduplication
|
||||||
|
|
||||||
Set `enabled` to true in the `[deduplication]` section of `config.toml` to enable file deduplication. Specify the `storagepath` where deduplicated files will be stored.
|
Set `enabled` to true in the `[deduplication]` section of `config.toml` to enable file deduplication. Specify the `directory` where deduplicated files will be stored.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
@ -104,76 +104,6 @@ directory = "/mnt/hmac-storage/thumbnails/"
|
|||||||
size = "200x200"
|
size = "200x200"
|
||||||
```
|
```
|
||||||
|
|
||||||
## Example `config.toml`
|
|
||||||
|
|
||||||
```toml
|
|
||||||
[server]
|
|
||||||
ListenPort = "8080"
|
|
||||||
UnixSocket = false
|
|
||||||
StoragePath = "./uploads"
|
|
||||||
LogLevel = "info"
|
|
||||||
LogFile = ""
|
|
||||||
MetricsEnabled = true
|
|
||||||
MetricsPort = "9090"
|
|
||||||
FileTTL = "1y"
|
|
||||||
DeduplicationEnabled = true
|
|
||||||
MinFreeBytes = "100MB"
|
|
||||||
AutoAdjustWorkers = true # Enable auto-adjustment for worker scaling
|
|
||||||
NetworkEvents = false # Disable logging and tracking of network-related events
|
|
||||||
PIDFilePath = "./hmac_file_server.pid" # Path to PID file
|
|
||||||
Precaching = true # Enable pre-caching of storage paths
|
|
||||||
ThumbnailEnabled = false # Whether to create thumbnails for uploaded images
|
|
||||||
|
|
||||||
[timeouts]
|
|
||||||
ReadTimeout = "480s"
|
|
||||||
WriteTimeout = "480s"
|
|
||||||
IdleTimeout = "65s" # nginx/apache2 keep-alive 60s
|
|
||||||
|
|
||||||
[security]
|
|
||||||
Secret = "changeme"
|
|
||||||
|
|
||||||
[versioning]
|
|
||||||
EnableVersioning = false
|
|
||||||
MaxVersions = 1
|
|
||||||
|
|
||||||
[uploads]
|
|
||||||
ResumableUploadsEnabled = true
|
|
||||||
ChunkedUploadsEnabled = true
|
|
||||||
ChunkSize = "64MB"
|
|
||||||
AllowedExtensions = [".txt", ".pdf", ".png", ".jpg", ".jpeg", ".gif", ".bmp", ".tiff", ".svg", ".webp", ".wav", ".mp4", ".avi", ".mkv", ".mov", ".wmv", ".flv", ".webm", ".mpeg", ".mpg", ".m4v", ".3gp", ".3g2", ".mp3", ".ogg"]
|
|
||||||
|
|
||||||
[downloads]
|
|
||||||
ResumableDownloadsEnabled = true
|
|
||||||
ChunkedDownloadsEnabled = true
|
|
||||||
ChunkSize = "64MB"
|
|
||||||
|
|
||||||
[clamav]
|
|
||||||
ClamAVEnabled = false
|
|
||||||
ClamAVSocket = "/var/run/clamav/clamd.ctl"
|
|
||||||
NumScanWorkers = 2
|
|
||||||
ScanFileExtensions = [".exe", ".dll", ".bin", ".com", ".bat", ".sh", ".php", ".js"]
|
|
||||||
|
|
||||||
[redis]
|
|
||||||
RedisEnabled = false
|
|
||||||
RedisAddr = "localhost:6379"
|
|
||||||
RedisPassword = ""
|
|
||||||
RedisDBIndex = 0
|
|
||||||
RedisHealthCheckInterval = "120s"
|
|
||||||
|
|
||||||
[workers]
|
|
||||||
NumWorkers = 4
|
|
||||||
UploadQueueSize = 5000
|
|
||||||
|
|
||||||
[file]
|
|
||||||
FileRevision = 1 # Revision number for file handling
|
|
||||||
|
|
||||||
[deduplication]
|
|
||||||
enabled = true
|
|
||||||
storagepath = "/mnt/nfs_vol01/hmac-file-server/deduplication/"
|
|
||||||
```
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
## HMAC File Server - Version 2.2 Stable
|
## HMAC File Server - Version 2.2 Stable
|
||||||
|
|
||||||
Below is an example configuration file (config.toml) you can use as a reference (with sensitive data removed):
|
Below is an example configuration file (config.toml) you can use as a reference (with sensitive data removed):
|
||||||
@ -216,7 +146,7 @@ writetimeout = "3600s"
|
|||||||
idletimeout = "3600s"
|
idletimeout = "3600s"
|
||||||
|
|
||||||
[security]
|
[security]
|
||||||
secret = "stellar-wisdom-orbit-echo"
|
secret = "changeme"
|
||||||
|
|
||||||
[versioning]
|
[versioning]
|
||||||
enableversioning = false
|
enableversioning = false
|
||||||
|
Loading…
x
Reference in New Issue
Block a user