Skip to content

Commit

Permalink
config: update server configuration for local development environment
Browse files Browse the repository at this point in the history
  • Loading branch information
PlusOne committed Dec 31, 2024
1 parent b7bea00 commit 808250d
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions cmd/server/config.toml
Original file line number Diff line number Diff line change
@@ -1,35 +1,35 @@
[server]
bind_ip = "127.0.0.1"
#bind_ip = "127.0.0.1"
listenport = "8080"
unixsocket = false
storagepath = "/mnt/nfs_vol01/hmac-file-server/data/"
storagepath = "./uploads/"
metricsenabled = true
metricsport = "9090"
deduplicationenabled = true
minfreebytes = "5GB"
filettl = "2y"
filettlenabled = true
filettlenabled = false
autoadjustworkers = true
networkevents = false
pidfilepath = "./hmac-file-server.pid"
precaching = true
precaching = false
#globalextensions = ["*"]

[deduplication]
enabled = true
directory = "/mnt/nfs_vol01/hmac-file-server/deduplication/"
directory = "./deduplication/"

[logging]
level = "debug"
file = "/var/log/hmac-file-server.log"
file = "./hmac-file-server.log"
max_size = 100
max_backups = 7
max_age = 30
compress = true

[thumbnails]
enabled = true
directory = "/mnt/nfs_vol01/hmac-file-server/thumbnails/"
enabled = false
directory = "./thumbnails/"
size = "200x200"
thumbnailintervalscan = "1h"
concurrency = 5
Expand Down Expand Up @@ -74,7 +74,7 @@ allowedextensions = [
]

[clamav]
clamavenabled = true
clamavenabled = false
clamavsocket = "/var/run/clamav/clamd.ctl"
numscanworkers = 4
scanfileextensions = [
Expand All @@ -83,7 +83,7 @@ scanfileextensions = [
]

[redis]
redisenabled = true
redisenabled = false
redisdbindex = 0
redisaddr = "localhost:6379"
redispassword = ""
Expand Down

0 comments on commit 808250d

Please sign in to comment.