add local filesystem storage for packages and assets with upload handlers
This commit is contained in:
@@ -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"),
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user