mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-11-09 19:20:09 +01:00
fix: bypass /tmp tmpfs for file uploads by redirecting PHP upload_tmp_dir to storage partition
This commit is contained in:
1 parent
1293b1be6c
commit
c1a05efcda
5 files changed
+35
-4
No files matched your search
@@ -0,0 +1,12 @@
|
||||
; Bypass /tmp tmpfs (987MB) for large video/audio uploads.
|
||||
; /tmp defaults to a small tmpfs; this points PHP's upload temp
|
||||
; directory to the storage partition which has 20GB free.
|
||||
upload_tmp_dir = /var/www/xamxam/storage/tmp/php-uploads
|
||||
|
||||
; These mirror the nginx fastcgi_param PHP_VALUE overrides
|
||||
; as a belt-and-suspenders safety net.
|
||||
upload_max_filesize = 8192M
|
||||
post_max_size = 8192M
|
||||
memory_limit = 256M
|
||||
max_execution_time = 600
|
||||
max_input_time = 600
|
||||
@@ -0,0 +1,12 @@
|
||||
; Bypass /tmp tmpfs (987MB) for large video/audio uploads.
|
||||
; /tmp defaults to a small tmpfs; this points PHP's upload temp
|
||||
; directory to the storage partition which has 20GB free.
|
||||
upload_tmp_dir = /var/www/xamxam/storage/tmp/php-uploads
|
||||
|
||||
; These mirror the nginx fastcgi_param PHP_VALUE overrides
|
||||
; as a belt-and-suspenders safety net.
|
||||
upload_max_filesize = 8192M
|
||||
post_max_size = 8192M
|
||||
memory_limit = 256M
|
||||
max_execution_time = 600
|
||||
max_input_time = 600
|
||||
Reference in new issue
Block a user