Skip to content

Commit

Permalink
Set *_temp_path location to $ServRoot/
Browse files Browse the repository at this point in the history
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
  • Loading branch information
jirutka committed Apr 28, 2017
1 parent 401dbba commit aa74d3e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/Test/Nginx/Util.pm
Original file line number Diff line number Diff line change
Expand Up @@ -964,6 +964,12 @@ _EOC_
}

print $out <<_EOC_;
client_body_temp_path "$ServRoot/client_body_temp";
proxy_temp_path "$ServRoot/proxy_temp";
fastcgi_temp_path "$ServRoot/fastcgi_temp";
scgi_temp_path "$ServRoot/scgi_temp";
uwsgi_temp_path "$ServRoot/uwsgi_temp";
}
$post_main_config
Expand Down

0 comments on commit aa74d3e

Please sign in to comment.