diff options
Diffstat (limited to 'internal/config/config.go')
| -rw-r--r-- | internal/config/config.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/config/config.go b/internal/config/config.go index 7a3a79c..a239aa2 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -17,8 +17,8 @@ type Config struct { // Bootstrap superadmin created on first start if no superadmin exists. SuperadminUsername string SuperadminPassword string - MaxUploadBytes int64 - Dev bool // reload templates/static from disk + MaxUploadBytes int64 // default per-file limit; the superadmin can override it per blog + Dev bool // reload templates/static from disk } func Load() (*Config, error) { @@ -32,7 +32,7 @@ func Load() (*Config, error) { SuperadminPassword: env("SUPERADMIN_PASSWORD", ""), Dev: envBool("DEV", false), } - mb, err := strconv.Atoi(env("MAX_UPLOAD_MB", "5")) + mb, err := strconv.Atoi(env("MAX_UPLOAD_MB", "10")) if err != nil || mb <= 0 { return nil, fmt.Errorf("MAX_UPLOAD_MB must be a positive integer") } |
