From f53c34c5d6b857f04e744de51ef353a5c678b2e8 Mon Sep 17 00:00:00 2001 From: Mark Felder Date: Wed, 25 Sep 2024 14:37:48 -0400 Subject: [PATCH] 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 --- installation/pleroma.nginx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/installation/pleroma.nginx b/installation/pleroma.nginx index 273cfb390..ca2edf2bd 100644 --- 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