Upload files to "/"

This commit is contained in:
2025-06-25 14:11:13 +00:00
commit 0c12daf8d2
5 changed files with 210 additions and 0 deletions

48
.env.example Normal file
View File

@ -0,0 +1,48 @@
PORT=3001
API_KEY=your-secure-api-key-here
NODE_ENV=development
API_ROOT_DIRECTORY=/
# Server Configuration
SERVER_NAME=File Manager API Server
SERVER_VERSION=1.0.0
# File Transfer Settings
MAX_FILE_SIZE=104857600
MAX_CONCURRENT_TRANSFERS=5
UPLOAD_TIMEOUT=300000
# File System Settings
FS_CACHE_TTL=60000
FS_MAX_DEPTH=10
FS_WATCH_ENABLED=true
# Security Settings
CORS_ORIGIN=http://localhost:3000,http://localhost:5173
REQUEST_TIMEOUT=30000
MAX_REQUEST_SIZE=104857600
# Logging Configuration
LOG_LEVEL=info
LOG_REQUESTS=true
LOG_ERRORS=true
LOG_FILE_PATH=./logs/api-server.log
# Rate Limiting
RATE_LIMIT_WINDOW=900000
RATE_LIMIT_MAX_REQUESTS=1000
# Health Check Settings
HEALTH_CHECK_ENABLED=true
HEALTH_CHECK_INTERVAL=60000
# Database Settings (if needed in future)
# DB_HOST=localhost
# DB_PORT=5432
# DB_NAME=filemanager
# DB_USER=filemanager
# DB_PASSWORD=your-db-password
# External Services (if needed)
# EXTERNAL_API_URL=https://api.example.com
# EXTERNAL_API_KEY=your-external-api-key