1
0
mirror of https://github.com/pocket-id/pocket-id.git synced 2026-02-15 08:10:13 +00:00

refactor: rename file backend value fs to filesystem

This commit is contained in:
Elias Schneider
2025-11-30 12:56:15 +01:00
parent 714b7744f0
commit 8d30346f64
3 changed files with 6 additions and 6 deletions

View File

@@ -88,7 +88,7 @@ func defaultConfig() EnvConfigSchema {
AppEnv: AppEnvProduction,
LogLevel: "info",
DbProvider: "sqlite",
FileBackend: "fs",
FileBackend: "filesystem",
KeysPath: "data/keys",
AppURL: AppUrl,
Port: "1411",
@@ -187,12 +187,12 @@ func validateEnvConfig(config *EnvConfigSchema) error {
}
case "database":
// All good, these are valid values
case "", "fs":
case "", "filesystem":
if config.UploadPath == "" {
config.UploadPath = defaultFsUploadPath
}
default:
return errors.New("invalid FILE_BACKEND value. Must be 'fs', 'database', or 's3'")
return errors.New("invalid FILE_BACKEND value. Must be 'filesystem', 'database', or 's3'")
}
// Validate LOCAL_IPV6_RANGES