Skip to content

Commit aa74d3e

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. Upstream-Issue: #63
1 parent 401dbba commit aa74d3e

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
@@ -964,6 +964,12 @@ _EOC_
964964
}
965965

966966
print $out <<_EOC_;
967+
968+
client_body_temp_path "$ServRoot/client_body_temp";
969+
proxy_temp_path "$ServRoot/proxy_temp";
970+
fastcgi_temp_path "$ServRoot/fastcgi_temp";
971+
scgi_temp_path "$ServRoot/scgi_temp";
972+
uwsgi_temp_path "$ServRoot/uwsgi_temp";
967973
}
968974
969975
$post_main_config

0 commit comments

Comments
 (0)