How to update PixelFed storage per user
-
The title says it all, the default is 1Gig per user, Id like to set it to 10gig per user, any help or ideas on this?
-
@subtlecourage Don't know if it helps, but maybe: https://docs.pixelfed.org/running-pixelfed/installation.html
-
@murgero said in How to update PixelFed storage per user:
@subtlecourage Don't know if it helps, but maybe: https://docs.pixelfed.org/running-pixelfed/installation.html
Thank you for that, with that then, I have discovered a bug within the app.
Bug 1: When I change
LIMIT_ACCOUNT_SIZE=true
toLIMIT_ACCOUNT_SIZE=false
, restart the app, then revert the changes - the limit (atleast graphically) never shows back up.Bug 2: When I change
MAX_ACCOUNT_SIZE=1000000
toMAX_ACCOUNT_SIZE=10000000000
and restart the app, the UI still shows the original 1Gb file limitThis was performed with a vanilla install, version 1.6.1
-
So I do see that on 1072
if(config_cache('pixelfed.enforce_account_limit') == true) { $size = Cache::remember($user->storageUsedKey(), now()->addDays(3), function() use($user) { return Media::whereUserId($user->id)->sum('size') / 1000; }); $limit = (int) config_cache('pixelfed.max_account_size'); if ($size >= $limit) { abort(403, 'Account size limit reached.'); } }
However, if you try to disable then re-enable to limit, it wont show back up.
Also, if I change the limit, it wont reflect that in the GUI of any logged in user.
-
@subtlecourage trust it, test it, or do some other update that refreshes the UI so it reflects what you expect.
There's no evidence it doesn't work as set in the config.