Skip to content

Commit 760e9ac

Browse files
committed
Set *_temp_path location to $ServRoot/
Linux distributions build nginx with options like `--http-client-body-temp-path=` to set default location of directories for temporary files under /var/tmp/nginx or /var/lib/nginx. The problem is, when running tests as part of the package build process, these directories are not writtable. Therefore it's needed to override location of these directories in the generated nginx.conf.
1 parent 401dbba commit 760e9ac

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/Test/Nginx/Util.pm

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -918,6 +918,12 @@ http {
918918
default_type text/plain;
919919
keepalive_timeout 68;
920920
921+
client_body_temp_path "$ServRoot/client_body_temp";
922+
proxy_temp_path "$ServRoot/proxy_temp";
923+
fastcgi_temp_path "$ServRoot/fastcgi_temp";
924+
scgi_temp_path "$ServRoot/scgi_temp";
925+
uwsgi_temp_path "$ServRoot/uwsgi_temp";
926+
921927
$http_config
922928
923929
server {

0 commit comments

Comments
 (0)