Add configurable temporary directory

This commit is contained in:
Egor Kislitsyn 2020-09-16 23:21:13 +04:00
commit e52dd62e14
No known key found for this signature in database
GPG key ID: 1B49CB15B71E7805
3 changed files with 14 additions and 2 deletions

View file

@ -1090,6 +1090,12 @@ Control favicons for instances.
* `:purge_after_days` an integer, remove backup achives after N days.
* `:limit_days` an integer, limit user to export not more often than once per N days.
* `:dir` a string with a path to backup temporary directory or `nil` to let Pleroma choose temporary directory in the following order:
1. the directory named by the TMPDIR environment variable
2. the directory named by the TEMP environment variable
3. the directory named by the TMP environment variable
4. C:\TMP on Windows or /tmp on Unix-like operating systems
5. as a last resort, the current working directory
## Frontend management