commit: f53c34c5d6b857f04e744de51ef353a5c678b2e8
parent d2eb4992e254c1cdc27033742de1958f02757df1
Author: Mark Felder <feld@feld.me>
Date: Wed, 25 Sep 2024 14:37:48 -0400
Move Pleroma cache to /var/tmp
/tmp is increasingly becoming tmpfs on a lot of distros and in cloud environments, so putting the cache there by default will be problematic
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/installation/pleroma.nginx b/installation/pleroma.nginx
@@ -6,7 +6,7 @@
# 3. Copy this file to /etc/nginx/sites-available/ and then add a symlink to it
# in /etc/nginx/sites-enabled/ and run 'nginx -s reload' or restart nginx.
-proxy_cache_path /tmp/pleroma-media-cache levels=1:2 keys_zone=pleroma_media_cache:10m max_size=10g
+proxy_cache_path /var/tmp/pleroma-media-cache levels=1:2 keys_zone=pleroma_media_cache:10m max_size=10g
inactive=720m use_temp_path=off;
# this is explicitly IPv4 since Pleroma.Web.Endpoint binds on IPv4 only