add local filesystem storage for packages and assets with upload handlers

This commit is contained in:
2026-01-18 21:16:42 +01:00
parent 01a0ac68a4
commit 149736108e
7 changed files with 481 additions and 12 deletions

View File

@@ -26,7 +26,7 @@ type Config struct {
GoogleClientSecret string
// Storage
PackagesDir string
StoragePath string // Base path for all storage (packages/, assets/, temp/)
BackupsDir string
}
@@ -45,7 +45,7 @@ func Load() (*Config, error) {
GoogleClientID: os.Getenv("GOOGLE_CLIENT_ID"),
GoogleClientSecret: os.Getenv("GOOGLE_CLIENT_SECRET"),
PackagesDir: getEnv("PACKAGES_DIR", "./packages"),
StoragePath: getEnv("STORAGE_PATH", "./storage"),
BackupsDir: getEnv("BACKUPS_DIR", "./backups"),
}