e2af482cc9
- Implement FileHandler with CRUD operations for files/directories - Add FileService with business logic and SHA-256 hashing - Create LocalStorage backend for filesystem persistence - Add database repository with pagination and name uniqueness constraints - Configure max upload size in storage settings - Include comprehensive tests for all layers
29 lines
498 B
YAML
29 lines
498 B
YAML
server:
|
|
host: 0.0.0.0
|
|
port: 10086
|
|
|
|
database:
|
|
driver: sqlite3
|
|
sqlite:
|
|
path: data/mygo.db
|
|
postgres:
|
|
host: localhost
|
|
port: 5432
|
|
user: mygo
|
|
password: mygo
|
|
dbname: mygo
|
|
sslmode: disable
|
|
|
|
storage:
|
|
driver: local
|
|
local:
|
|
path: data/files
|
|
|
|
# Max upload file size in bytes. 0 = unlimited
|
|
max_upload_size: 104857600 # 100 MB
|
|
|
|
jwt:
|
|
secret: change-me-in-production
|
|
access_ttl: 15m
|
|
refresh_ttl: 168h
|