diff --git a/installation/apache/akkoma-apache.conf b/installation/apache/akkoma-apache.conf index 65bbf15e1..76357789e 100644 --- a/installation/apache/akkoma-apache.conf +++ b/installation/apache/akkoma-apache.conf @@ -60,7 +60,7 @@ ServerTokens Prod Include /etc/letsencrypt/options-ssl-apache.conf # Uncomment the following to enable MediaProxy caching on disk - #CacheRoot /tmp/akkoma-media-cache/ + #CacheRoot /var/tmp/akkoma-media-cache/ #CacheDirLevels 1 #CacheDirLength 2 #CacheEnable disk /proxy diff --git a/installation/apache/apache-cache-purge.sh.example b/installation/apache/apache-cache-purge.sh.example index 65df9cc11..59c2a5ed0 100755 --- a/installation/apache/apache-cache-purge.sh.example +++ b/installation/apache/apache-cache-purge.sh.example @@ -16,7 +16,7 @@ SCRIPTNAME=${0##*/} # mod_disk_cache directory -CACHE_DIRECTORY="/tmp/akkoma-media-cache" +CACHE_DIRECTORY="/var/tmp/akkoma-media-cache" ## Removes an item via the htcacheclean utility ## $1 - the filename, can be a pattern . diff --git a/installation/nginx/akkoma.nginx b/installation/nginx/akkoma.nginx index bfb1fffb3..bdd5d0f8b 100644 --- a/installation/nginx/akkoma.nginx +++ b/installation/nginx/akkoma.nginx @@ -3,7 +3,7 @@ # See the documentation at docs.akkoma.dev for your particular distro/OS for # installation instructions. -proxy_cache_path /tmp/akkoma-media-cache levels=1:2 keys_zone=akkoma_media_cache:10m max_size=1g +proxy_cache_path /var/tmp/akkoma-media-cache levels=1:2 keys_zone=akkoma_media_cache:10m max_size=1g inactive=720m use_temp_path=off; # this is explicitly IPv4 since Pleroma.Web.Endpoint binds on IPv4 only diff --git a/installation/nginx/nginx-cache-purge.sh.example b/installation/nginx/nginx-cache-purge.sh.example index 6cd01d1e7..be5f186e4 100755 --- a/installation/nginx/nginx-cache-purge.sh.example +++ b/installation/nginx/nginx-cache-purge.sh.example @@ -5,7 +5,7 @@ SCRIPTNAME=${0##*/} # NGINX cache directory -CACHE_DIRECTORY="/tmp/akkoma-media-cache" +CACHE_DIRECTORY="/var/tmp/akkoma-media-cache" ## Return the files where the items are cached. ## $1 - the filename, can be a pattern .