Added file management.

This commit is contained in:
mikestefanello 2025-02-16 14:23:52 -05:00
parent 09b8393c8a
commit 3eab2f5562
12 changed files with 201 additions and 21 deletions

View file

@ -57,6 +57,7 @@ type (
App AppConfig
Cache CacheConfig
Database DatabaseConfig
Files FilesConfig
Tasks TasksConfig
Mail MailConfig
}
@ -105,6 +106,11 @@ type (
TestConnection string
}
// FilesConfig stores the file system configuration
FilesConfig struct {
Directory string
}
// TasksConfig stores the tasks configuration
TasksConfig struct {
Goroutines int

View file

@ -32,6 +32,9 @@ database:
connection: "dbs/main.db?_journal=WAL&_timeout=5000&_fk=true"
testConnection: ":memory:?_journal=WAL&_timeout=5000&_fk=true"
files:
directory: "uploads"
tasks:
goroutines: 1
releaseAfter: "15m"